From a0e3794b2a471b2564f922ea87d50155025e4a18 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Thu, 8 Jun 2017 15:06:30 +0200 Subject: [PATCH] systemd: include systemd-tmpfiles-setup.service ... because otherwise nothing will actually apply configuration from tmpfiles snippets --- modules.d/00systemd/module-setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh index a38413f73..5da22a93b 100755 --- a/modules.d/00systemd/module-setup.sh +++ b/modules.d/00systemd/module-setup.sh @@ -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" -- 2.47.2