aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCornelius Hoffmann <coding@hoffmn.de>2021-11-29 21:47:06 +0100
committerJóhann B. Guðmundsson <johannbg@gmail.com>2021-12-10 12:58:35 +0000
commitdcbe23c14d13ca335ad327b7bb985071ca442f12 (patch)
tree91062a56bc7bf57ba5399220c34d6a9679b74b33
parente3bb1815bbbff1a7e21b857d2ae32bc0410754d5 (diff)
downloaddracut-dcbe23c14d13ca335ad327b7bb985071ca442f12.tar.gz
fix(systemd-sysusers): override systemd-sysusers.service
Fixes a regression with systemd not running units with ConditionNeedsUpdate set in initrds
-rwxr-xr-xmodules.d/01systemd-sysusers/module-setup.sh2
-rw-r--r--modules.d/01systemd-sysusers/sysusers-dracut.conf2
2 files changed, 4 insertions, 0 deletions
diff --git a/modules.d/01systemd-sysusers/module-setup.sh b/modules.d/01systemd-sysusers/module-setup.sh
index 6073ad59..4ec48dc6 100755
--- a/modules.d/01systemd-sysusers/module-setup.sh
+++ b/modules.d/01systemd-sysusers/module-setup.sh
@@ -24,6 +24,8 @@ depends() {
# Install the required file(s) and directories for the module in the initramfs.
install() {
+ inst_simple "$moddir/sysusers-dracut.conf" "$systemdsystemunitdir/systemd-sysusers.service.d/sysusers-dracut.conf"
+
inst_multiple -o \
"$sysusers"/basic.conf \
"$sysusers"/systemd.conf \
diff --git a/modules.d/01systemd-sysusers/sysusers-dracut.conf b/modules.d/01systemd-sysusers/sysusers-dracut.conf
new file mode 100644
index 00000000..9b13364b
--- /dev/null
+++ b/modules.d/01systemd-sysusers/sysusers-dracut.conf
@@ -0,0 +1,2 @@
+[Unit]
+ConditionNeedsUpdate=