Fix error when re-installing xdm
[hvlinux.git] / stage4 / pkg / dbus
index f576ac7..1da1f86 100644 (file)
@@ -2,12 +2,11 @@
 
 hvconfig_pre()
 {
-    hv_groupadd -g 18 messagebus
-    hv_useradd -c D-BUS-Message-Daemon-User -d /dev/null \
-        -u 18 -g messagebus -s /bin/false messagebus
+    groupadd --system -f messagebus
+    hv_useradd --system -c D-BUS-Message-Daemon-User -d /dev/null \
+        -g messagebus -s /bin/false messagebus
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libexecdir=/usr/lib/dbus-1.0 \
         --localstatedir=/var"
 }
@@ -20,8 +19,6 @@ hvbuild_post()
     # script-name start stop
     bootscript_add_rc3 dbus 92 20
 
-    # Starting the session daemon here has the added bonus that it will exit
-    # when you log out of your GNOME session. If you wish to start the daemon
-    #here, use the following command instead of the one shown above:
-    ##echo "exec dbus-launch --exit-with-session gnome-session" >> ~/.xinitrc
+    # Without this, VLC was giving an error.
+    dbus-uuidgen > /var/lib/dbus/machine-id
 }