Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: Regression bug: dbus messagebus user generation is wrong
Date: Thu, 22 Dec 2011 09:52:43 -0600	[thread overview]
Message-ID: <4EF3524B.6040601@windriver.com> (raw)
In-Reply-To: <20111222131753.GJ12791@jama.jama.net>

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

--Mark



  reply	other threads:[~2011-12-22 15:59 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 [this message]
2011-12-22 16:10       ` Martin Jansa
2011-12-22 18:02       ` Richard Purdie

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=4EF3524B.6040601@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