]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dbus-daemon): use uid/gid from sysroot is dracutsysrootdir is set
authorZoltán Böszörményi <zboszor@pr.hu>
Tue, 9 Feb 2021 05:00:19 +0000 (06:00 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 9 Feb 2021 07:09:28 +0000 (07:09 +0000)
Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
modules.d/06dbus-daemon/module-setup.sh

index 91abdc57af088df420c2e49e67d8ce66b0eade40..42ab0534cd68280cf28573e6dbc46e187c996460 100755 (executable)
@@ -87,8 +87,8 @@ install() {
         "$initdir$systemdsystemunitdir/dbus.socket"
 
     # Adding the user and group for dbus
-    grep '^\(d\|message\)bus:' /etc/passwd >> "$initdir/etc/passwd"
-    grep '^\(d\|message\)bus:' /etc/group >> "$initdir/etc/group"
+    grep '^\(d\|message\)bus:' $dracutsysrootdir/etc/passwd >> "$initdir/etc/passwd"
+    grep '^\(d\|message\)bus:' $dracutsysrootdir/etc/group >> "$initdir/etc/group"
 
     # Install the hosts local user configurations if enabled.
     if [[ $hostonly ]]; then