]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: add more groups to deal with tmpfiles handling. 162/head
authorColin Guthrie <colin@mageia.org>
Tue, 7 Jun 2016 09:40:08 +0000 (10:40 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 7 Jun 2016 10:04:13 +0000 (12:04 +0200)
Both 'utmp' and 'root' groups are mentioned in tmpfiles.d/systemd.conf
and as such should be included.

It's probably better to have something equiv to inst_rule_group_owner()
for udev rules which parses out users and groups and adds them to the
passwd/group db respectively.

Could also rely on sysusers but as the initramfs is static in this
sense, it's more efficient to pre-define the users IMO.

modules.d/00systemd/module-setup.sh

index 951a5be9027fbf4761ff4b1e2ee7a8f28b8c8c65..abe44d8752855653ffd6c88bf372f9b3f3d302da 100755 (executable)
@@ -184,6 +184,8 @@ install() {
     grep '^systemd-journal:' /etc/group >> "$initdir/etc/group"
     grep '^wheel:' /etc/group >> "$initdir/etc/group"
     grep '^adm:' /etc/group >> "$initdir/etc/group"
+    grep '^utmp:' /etc/group >> "$initdir/etc/group"
+    grep '^root:' /etc/group >> "$initdir/etc/group"
 
     ln_r $systemdutildir/systemd "/init"
     ln_r $systemdutildir/systemd "/sbin/init"