Skip to contentSkip to conversation

dbus broken again

DISCUSSION Martin Jansa 1 participant 1 message Nov 2, 2011

lore
Share & tools
lore
#0 lore raw

After last attempt to fix dbus there is new issue

I have talked with Richard on IRC already, but will repeat it here just to warn other dbus users.

Updated list of available packages in /var/lib/opkg/lists/jama-om_gta02. Upgrading dbus-1 on root from 1.4.12-r2 to 1.4.12-r7... Downloading
http://jama.dyndns-home.com/org.openembedded.shr-core//armv4t/dbus-1_1.4.12-r7_armv4t.ipk.
Running groupadd commands...
Note: group netdev already exists, not re-creating it Running useradd commands...
Note: username messagebus already exists, not re-creating it Upgrading libdbus-1-3 on root from 1.4.12-r2 to 1.4.12-r7... Downloading
http://jama.dyndns-home.com/org.openembedded.shr-core//armv4t/libdbus-1-3_1.4.12-r7_armv4t.ipk.
Upgrading libglib-2.0-0 on root from 1:2.30.0-r2 to 1:2.30.0-r3... Downloading
http://jama.dyndns-home.com/org.openembedded.shr-core//armv4t/libglib-2.0-0_2.30.0-r3_armv4t.ipk.
Configuring dbus-1.
System startup links for /etc/init.d/dbus-1 already exist.
Configuring libdbus-1-3.
Configuring libglib-2.0-0.

SHR root@gjama / $ ll /usr/libexec/dbus-daemon-launch-helper -rwsr-xr-- 1 root 998 142748 Nov 2 10:12 /usr/libexec/dbus-daemon-launch-helper

SHR root@gjama / $ ll -d /var/lib/dbus drwxr-xr-x 2 999 998 4096 Nov 2 10:12 /var/lib/dbus

SHR root@gjama / $ grep message /etc/group messagebus:x:101:
SHR root@gjama / $ grep message /etc/passwd messagebus:x:42:101:Linux User,,,:/var/run/dbus:/bin/sh

and that's because useradd.bbclass is using UID/GID from sysroots OE om-gta02@shr ~/shr-core $ grep message tmp/sysroots/om-gta02/etc/group messagebus:x:998:
OE om-gta02@shr ~/shr-core $ grep message tmp/sysroots/om-gta02/etc/passwd messagebus:!:999:998::/var/lib/dbus:

and nothing is updating /etc/passwd /etc/group IDs on target.

The possible solution would be to force specified UID/GID in useradd.bbclass to make it consistent during rebuild from scratch or teach useradd postinst to update UID/GIDs and chown all runtime created files to new values instead of skiping useradd/groupadd commnads when user already exists, like it did now:
Note: username messagebus already exists, not re-creating it
Note: group netdev already exists, not re-creating it

Also reported here:
http://bugzilla.pokylinux.org/show_bug.cgi?id=1711

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]