diff options
Diffstat (limited to 'meta/recipes-core/dbus/dbus.inc')
-rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc index 2a5f8bdb98..38acf354fb 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc | |||
@@ -49,13 +49,17 @@ pkg_postinst_dbus() { | |||
49 | 49 | ||
50 | MESSAGEUSER=messagebus | 50 | MESSAGEUSER=messagebus |
51 | MESSAGEHOME=/var/run/dbus | 51 | MESSAGEHOME=/var/run/dbus |
52 | UUIDDIR=/var/lib/dbus | ||
52 | 53 | ||
53 | mkdir -p $MESSAGEHOME || true | 54 | mkdir -p $MESSAGEHOME |
55 | mkdir -p $UUIDDIR | ||
54 | chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" | 56 | chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" |
55 | chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || \ | 57 | chown "$MESSAGEUSER":"$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || \ |
56 | adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password \ | 58 | adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password \ |
57 | --ingroup "$MESSAGEUSER" "$MESSAGEUSER" | 59 | --ingroup "$MESSAGEUSER" "$MESSAGEUSER" |
58 | 60 | ||
61 | chown "$MESSAGEUSER":"$MESSAGEUSER" "$UUIDDIR" | ||
62 | |||
59 | grep -q netdev: /etc/group || addgroup netdev | 63 | grep -q netdev: /etc/group || addgroup netdev |
60 | 64 | ||
61 | chown root:"$MESSAGEUSER" /usr/libexec/dbus-daemon-launch-helper | 65 | chown root:"$MESSAGEUSER" /usr/libexec/dbus-daemon-launch-helper |
@@ -63,7 +67,9 @@ pkg_postinst_dbus() { | |||
63 | 67 | ||
64 | # add volatile after new user/grp are created | 68 | # add volatile after new user/grp are created |
65 | echo "d messagebus messagebus 0755 /var/run/dbus none" > /etc/default/volatiles/99_dbus | 69 | echo "d messagebus messagebus 0755 /var/run/dbus none" > /etc/default/volatiles/99_dbus |
66 | /etc/init.d/populate-volatile.sh update | 70 | if [ -e /etc/init.d/populate-volatile.sh ] ; then |
71 | /etc/init.d/populate-volatile.sh update | ||
72 | fi | ||
67 | } | 73 | } |
68 | 74 | ||
69 | EXTRA_OECONF_X = "--with-x" | 75 | EXTRA_OECONF_X = "--with-x" |