From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: Regression bug: dbus messagebus user generation is wrong
Date: Thu, 22 Dec 2011 18:02:44 +0000 [thread overview]
Message-ID: <1324576964.24604.30.camel@ted> (raw)
In-Reply-To: <4EF3524B.6040601@windriver.com>
On Thu, 2011-12-22 at 09:52 -0600, Mark Hatle wrote:
> On 12/22/11 7:17 AM, Martin Jansa wrote:
> ...
>
> > /********* logs *************/
> > Checking ERRORs in log.do_rootfs files
> > ============== correct om-gta02:
> > Installing base-passwd (3.5.22-r9) to root...
> > Downloading file:/OE/shr-core/tmp-eglibc/deploy/ipk/armv4t/base-passwd_3.5.22-r9_armv4t.ipk.
> > Running groupadd commands...
> > /usr/sbin/nscd: Only root is allowed to use this option!
> > /usr/sbin/nscd: Only root is allowed to use this option!
> > /usr/sbin/nscd: Only root is allowed to use this option!
>
> We need to track down that error above and figure out what it means. It could
> be that groupadd is attempting to run a system helper that it shouldn't be.
> (nscd should never be consulted when we are running through pseudo for
> password/group calculations...)
>
> ...
>
> > ============== wrong nokia900:
> > Installing dbus-1 (1.4.16-r2) to root...
> > Downloading file:/OE/shr-core/tmp-eglibc/deploy/ipk/armv7a-vfp-neon/dbus-1_1.4.16-r2_armv7a-vfp-neon.ipk.
> > Running groupadd commands...
> > grep: /OE/shr-core/tmp-eglibc/work/nokia900-oe-linux-gnueabi/shr-image-2.0-r20/rootfs//etc/group: No such file or directory
> > groupadd: cannot open /etc/group
> > Running useradd commands...
> > grep: /OE/shr-core/tmp-eglibc/work/nokia900-oe-linux-gnueabi/shr-image-2.0-r20/rootfs//etc/passwd: No such file or directory
> > useradd: group '1000' does not exist
> > useradd: the GROUP= configuration in /etc/default/useradd will be ignored
> > useradd: cannot open /etc/passwd
> > ...
>
> Ya, that is definitely broken. W/o the files then the groupadd/useradd won't
> function properly and the install is likely a failure.
>
> On other systems I work with, we -always- install the passwd/group files onto
> the system -first-. Then we perform the regular installation procedure. I
> wonder if we may have to do something like that within oe-core to force the
> proper ordering.
>
> It would be interesting to me to see the install order that was selected in this
> case. It could be that opkg either is missing some critical dependency
> information -- or perhaps what we need simply can't be specified.
>
> In other systems I've worked with, the base-passwd packages has been a
> requirement of the libc package. Since libc generally gets installed early in
> the process it usually enforces it to be first. I'm not sure if OE-core has
> that same dep. (Maybe we simply need any package that has files != root:root
> have a dep on the passwd files? Just thinking outloud here.. I'm not sure thats
> really a good idea.)
FWIW the useradd class is adding dependencies and those dependencies
should now be being honoured by opkg after the recent changes.
Martin: If you could share the full do_rootfs log for a broken image
I'll take a look and see if I can spot anything...
Cheers,
Richard
prev parent reply other threads:[~2011-12-22 18:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-22 8:49 Regression bug: dbus messagebus user generation is wrong Bernhard Guillon
2011-12-22 9:02 ` Richard Purdie
2011-12-22 9:10 ` Martin Jansa
2011-12-22 10:06 ` Bernhard Guillon
2011-12-22 10:26 ` Koen Kooi
2011-12-22 12:04 ` Richard Purdie
2011-12-22 12:08 ` Richard Purdie
2011-12-22 13:17 ` Martin Jansa
2011-12-22 15:52 ` Mark Hatle
2011-12-22 16:10 ` Martin Jansa
2011-12-22 18:02 ` Richard Purdie [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=1324576964.24604.30.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--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