Skip to content

Commit

Permalink
fix(systemd-sysusers): override systemd-sysusers.service
Browse files Browse the repository at this point in the history
Fixes a regression with systemd not running units with ConditionNeedsUpdate set in initrds
  • Loading branch information
Cornelicorn authored and johannbg committed Dec 10, 2021
1 parent e3bb181 commit dcbe23c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules.d/01systemd-sysusers/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions modules.d/01systemd-sysusers/sysusers-dracut.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Unit]
ConditionNeedsUpdate=

0 comments on commit dcbe23c

Please sign in to comment.