Return-Path: Received: from smtp685.redcondor.net (smtp685.redcondor.net [208.80.206.85]) by mail.openembedded.org (Postfix) with ESMTP id F3DFA60853 for ; Fri, 29 Jul 2016 12:03:53 +0000 (UTC) Received: from astoria.ccjclearline.com ([64.235.106.9]) by smtp685.redcondor.net ({20c8e40f-6b6c-4c9e-abff-1640ea7bf404}) via TCP (outbound) with ESMTPS id 20160729120352064_0685; Fri, 29 Jul 2016 05:03:52 -0700 X-RC-FROM: Received: from [216.191.234.70] (port=11945 helo=crashcourse.ca) by astoria.ccjclearline.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1bT6Xu-00070j-Sh; Fri, 29 Jul 2016 08:05:42 -0400 Date: Fri, 29 Jul 2016 08:03:43 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Richard Purdie In-Reply-To: <1469793514.9142.61.camel@linuxfoundation.org> Message-ID: References: <1469792913.9142.56.camel@linuxfoundation.org> <1469793514.9142.61.camel@linuxfoundation.org> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 X-MAG-OUTBOUND: ccj.redcondor.net@64.235.106.9/32 Cc: OE Core mailing list Subject: Re: want to verify proper use of run-postinsts, if i may X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2016 12:03:54 -0000 Content-Type: text/plain; charset=US-ASCII On Fri, 29 Jul 2016, Richard Purdie wrote: > On Fri, 2016-07-29 at 07:54 -0400, Robert P. J. Day wrote: > > On Fri, 29 Jul 2016, Richard Purdie wrote: > > > > > On Fri, 2016-07-29 at 07:43 -0400, Robert P. J. Day wrote: > > > > On Fri, 29 Jul 2016, Robert P. J. Day wrote: > > > > > > > > ... snip ... > > > > > > > > > am i missing anything? i'm assuming i'd use a .bbappend recipe > > > > > to > > > > > add the script names to SRC_URI, then define > > > > > "do_install_append()" > > > > > to manually copy them over, or is there a proper way to do that > > > > > i'm > > > > > not seeing? > > > > > > > > never mind, just found an example that confirmed just what i > > > > suspected: > > > > > > > > https://github.com/meta-debian/meta-debian/blob/daisy/recipes-deb > > > > ian/ > > > > run-postinsts/run-postinsts_1.0.bbappend > > > > > > Personally, I wouldn't take meta-debian as a good example of > > > anything, that layer is doing some things which I'd find > > > questionable. Obviously they are free to do so though. > > > > > > Most of the time the package manager sets up things to run under > > > run -postinsts as needed. Yes, you can do this automatically, > > > but why not just write a postinstall for your package and defer > > > it to first boot if that is what you need? > > > > it's not just package post stuff here, i'm looking at > > run-postinsts to do a *lot* of subsequent setup of the target > > system -- effectively downloading and installing the entire > > proprietary application. > > > > yes, i realize i could just make that app part of the initial > > image, but there are reasons for this. so i'm assuming just > > manually installing and running some scripts via run-postinsts is > > the way to go. > > Note that if there aren't files there to run, I think run-postinsts > disables itself from subsequent boots so it really is designed for "one > -shot" use. It may not run at all if there is nothing to run. that's fine, that's exactly what i want, an analogue to red hat's "firstboot" feature. but i just ran across this in the meta-intel-edison layer: http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/tree/meta-intel-edison-distro/recipes-core/post-install which, if i read this correctly, also does what i want, i just need to write a single script, post-install.sh. in any event, i realize there's more than one way to do this, i'm just curious as to the recommmended way. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================