Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [Draft design][RFC] Running postinst at rootfs	generation time
Date: Tue, 12 Jul 2011 12:07:02 -0500	[thread overview]
Message-ID: <4E1C7F36.1080501@windriver.com> (raw)
In-Reply-To: <0C757E680E33864AB113392C7E83F910BE5196@GSX300A.mxchg.m.corp>

On 7/5/11 5:06 AM, Hauser, Wolfgang (external) wrote:
> To build a read-only image, we have to set up an extra layer where we modified all packages they cause a runtime modification.
> 
> Especially we have to cover some adduser/addgroup issues, modify the volatile file handling for our needs, and for omap3 graphics the handling of the GLES version.
> A failed offline postinst causing a runtime configuration. So the image generation log has to be checked for such failing scripts.

Just an FYI, with the new adduser/group code.. that should no longer be one of
the contributing factors.. we can now add users and groups during recipe /
rootfs construction.

> Some of the packages (e.g. dropbear) are prepared for supporting read-only filesystems. Most packages are not.
> 
> The problem with the alphabetic order of the postinst scripts we managed by renaming some of the packages to fit the needed order. An ugly solution, but in case of missing python skills, the easiest.

Ya, this one bothers me slightly... and I'm not really sure how to solve it...

--Mark

> Nice to see someone having the same needs we have to fit.
>  
> Regards
> Wolfgang Hauser
> 
> -----Ursprüngliche Nachricht-----
> Von: Tom Parkin [mailto:tom.parkin@gmail.com] 
> Gesendet: Dienstag, 5. Juli 2011 10:42
> An: Patches and discussions about the oe-core layer
> Cc: Hauser, Wolfgang (external)
> Betreff: Re: [OE-core] [Draft design][RFC] Running postinst at rootfs generation time
> 
> I'm interested to read about this initiative as we've recently
> stumbled over the issue of postinst scripts in trying to port our
> build to OE.
> 
> So far it seems the primary concern is about the boot-time impact of
> postinst on the target.  But for the use-cases I'm interested in, we
> need to capture all install processes as a part of the build in order
> to output a fully-provisioned read-only rootfs image (e.g. squashfs).
> Our boxes don't typically modify their filesystems at runtime, other
> than to take full updates (completely new rootfs images).
> 
> I think the reduction, or even elimination, of target-run postinst
> scripts would help a lot with the read-only rootfs case.
> 
> Tom
> 
> On 4 July 2011 01:23, Cui, Dexuan <dexuan.cui@intel.com> wrote:
>> Hauser, Wolfgang (external) wrote:
>>> Beside the discussed changes, the postinst scripts should be executed
>>> in the dependency order.
>>> At the time, the scripts are executed in alphabetic order, which
>>> breaks the image generation if depended packages are not in
>>> alphabetic order.
>>>
>>> e.g. busybox and busybox subpackages (busybox-mdev).
>>>
>>> Regards
>>> Wolfgang Hauser
>>>
>>
>> Thank all for the suggestions!
>> I created a wiki page to summarize the mail threads:
>> https://wiki.yoctoproject.org/wiki/Run_postinst_during_rootfs_generation
>>
>> Thanks,
>> -- Dexuan
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
> 
> 
> 




  parent reply	other threads:[~2011-07-12 17:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-28  2:09 [Draft design][RFC] Running postinst at rootfs generation time Cui, Dexuan
2011-06-28  4:11 ` Mark Hatle
2011-06-28 13:15   ` Richard Purdie
2011-06-28 14:44     ` Mark Hatle
2011-06-28 16:58       ` Hauser, Wolfgang (external)
2011-07-04  0:23         ` Cui, Dexuan
2011-07-05  8:42           ` Tom Parkin
2011-07-05 10:06             ` Hauser, Wolfgang (external)
2011-07-05 10:22               ` Phil Blundell
2011-07-05 10:30                 ` Hauser, Wolfgang (external)
2011-07-05 10:36                   ` Phil Blundell
2011-07-12 17:07               ` Mark Hatle [this message]
2011-07-13  7:58                 ` Hauser, Wolfgang (external)
2011-07-13 10:04                 ` Phil Blundell
2011-06-28 13:18 ` Richard Purdie
2011-06-28 20:31 ` Saul Wold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E1C7F36.1080501@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox