Re: [OE-core] [Patch v3] rootfs_ipk bbclass: special-case base-passwd preinst to run first

2011-11-04 Thread Richard Purdie
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 
> ---
>  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.

Saul: We'd better check if the rpm rootfs class needs this help

Cheers,

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [Patch v3] rootfs_ipk bbclass: special-case base-passwd preinst to run first

2011-11-04 Thread Koen Kooi

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 
>> ---
>> 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

signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [Patch v3] rootfs_ipk bbclass: special-case base-passwd preinst to run first

2011-11-04 Thread Mark Hatle
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 
>>> ---
>>> 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


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core