From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [Patch v3] rootfs_ipk bbclass: special-case base-passwd preinst to run first
Date: Fri, 4 Nov 2011 11:23:42 -0500 [thread overview]
Message-ID: <4EB4118E.50005@windriver.com> (raw)
In-Reply-To: <9EE60FF1-8F0B-4F49-B807-3CC198A4F24A@dominion.thruhere.net>
One way to possibly address this is to create a distribution image creation
policy. (That is how most of the distributions I'm aware of do it..
desktop/server and embedded.)
The policy is generally:
install passwd/group files
install filesystem hierarchy (it's second because it needs uid/gids)
install "everything else"
Something needs to set down the base set of components so the filesystem is sane
before we do the actual package installs and pre/post install scripts for each.
We could make this generic by defining "critical" or "base" or whatever name you
want packages and setting a specific order for these packages. (The list needs
to kept small, there generally are one or two items that need to be done very
early.)
--Mark
On 11/4/11 11:09 AM, Koen Kooi wrote:
>
> Op 4 nov. 2011, om 16:45 heeft Richard Purdie het volgende geschreven:
>
>> On Fri, 2011-11-04 at 12:44 +0100, Koen Kooi wrote:
>>> Preinst are run alphabetically which breaks when e.g. avahi-daemon needs /etc/passwd present.
>>>
>>> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
>>> ---
>>> meta/classes/rootfs_ipk.bbclass | 6 ++++++
>>> 1 files changed, 6 insertions(+), 0 deletions(-)
>>
>> I've merged this to master. I'm not particularly happy about it but
>> right now I can't see a good way to fix this short/medium term.
>
> RP and discussed this and we're both not happy with it, but no viable other options short/medium term. The idea is to see if we can have opkg run all the preinsts since opkg does dependency resolving nowadays.
>
> regards,
>
> Koen
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
prev parent reply other threads:[~2011-11-04 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-04 11:44 [Patch v3] rootfs_ipk bbclass: special-case base-passwd preinst to run first Koen Kooi
2011-11-04 15:45 ` Richard Purdie
2011-11-04 16:09 ` Koen Kooi
2011-11-04 16:23 ` Mark Hatle [this message]
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=4EB4118E.50005@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