diff options
author | Cornelius Hoffmann <coding@hoffmn.de> | 2021-11-29 21:47:06 +0100 |
---|---|---|
committer | Jóhann B. Guðmundsson <johannbg@gmail.com> | 2021-12-10 12:58:35 +0000 |
commit | dcbe23c14d13ca335ad327b7bb985071ca442f12 (patch) | |
tree | 91062a56bc7bf57ba5399220c34d6a9679b74b33 | |
parent | e3bb1815bbbff1a7e21b857d2ae32bc0410754d5 (diff) | |
download | dracut-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-x | modules.d/01systemd-sysusers/module-setup.sh | 2 | ||||
-rw-r--r-- | modules.d/01systemd-sysusers/sysusers-dracut.conf | 2 |
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= |