]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: add "adm" and "wheel" to passwd and group
authorHarald Hoyer <harald@redhat.com>
Thu, 26 Feb 2015 08:39:32 +0000 (09:39 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Feb 2015 08:39:32 +0000 (09:39 +0100)
modules.d/98systemd/module-setup.sh

index 51ea288b28834c82a1ba85a8f08399bd050c1aac..761349f6e3f27127c2e5f1f5fef8859873c03899 100755 (executable)
@@ -176,7 +176,11 @@ install() {
     # install adm user/group for journald
     inst_multiple nologin
     egrep '^systemd-journal:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
+    egrep '^wheel:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
+    egrep '^adm:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
     egrep '^systemd-journal:' /etc/group >> "$initdir/etc/group"
+    egrep '^wheel:' /etc/group >> "$initdir/etc/group"
+    egrep '^adm:' /etc/group >> "$initdir/etc/group"
 
     ln_r $systemdutildir/systemd "/init"
     ln_r $systemdutildir/systemd "/sbin/init"