]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: include systemd-tmpfiles-setup.service 235/head
authorLukas Nykryn <lnykryn@redhat.com>
Thu, 8 Jun 2017 13:06:30 +0000 (15:06 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Thu, 8 Jun 2017 13:06:34 +0000 (15:06 +0200)
... because otherwise nothing will actually
apply configuration from tmpfiles snippets

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

index a38413f730af86f7651823c7fb33bfa9099181b5..5da22a93beebcf72ecc2a0475ddabc66dc57cdbe 100755 (executable)
@@ -77,6 +77,7 @@ install() {
         $systemdsystemunitdir/sys-kernel-config.mount \
         \
         $systemdsystemunitdir/kmod-static-nodes.service \
+        $systemdsystemunitdir/systemd-tmpfiles-setup.service \
         $systemdsystemunitdir/systemd-tmpfiles-setup-dev.service \
         $systemdsystemunitdir/systemd-ask-password-console.path \
         $systemdsystemunitdir/systemd-udevd-control.socket \
@@ -112,6 +113,7 @@ install() {
         $systemdsystemunitdir/sysinit.target.wants/systemd-udevd.service \
         $systemdsystemunitdir/sysinit.target.wants/systemd-udev-trigger.service \
         $systemdsystemunitdir/sysinit.target.wants/kmod-static-nodes.service \
+        $systemdsystemunitdir/sysinit.target.wants/systemd-tmpfiles-setup.service \
         $systemdsystemunitdir/sysinit.target.wants/systemd-tmpfiles-setup-dev.service \
         $systemdsystemunitdir/sysinit.target.wants/systemd-sysctl.service \
         \
@@ -194,6 +196,10 @@ install() {
     grep '^utmp:' /etc/group >> "$initdir/etc/group"
     grep '^root:' /etc/group >> "$initdir/etc/group"
 
+    # we don't use systemd-networkd, but the user is in systemd.conf tmpfiles snippet
+    grep '^systemd-network:' /etc/passwd 2>/dev/null >> "$initdir/etc/passwd"
+    grep '^systemd-network:' /etc/group >> "$initdir/etc/group"
+
     ln_r $systemdutildir/systemd "/init"
     ln_r $systemdutildir/systemd "/sbin/init"