diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-07-13 11:06:04 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-07-16 00:47:22 +0900 |
commit | 3acb6edef3857aa54ca9008fc3428a5f5e1a8bb7 (patch) | |
tree | 8b693f3a6bb45acff507491b697b4b1532b5dce8 /units | |
parent | 69a7d108327fa5d4b4e8e913441e924b2187cd78 (diff) | |
download | systemd-3acb6edef3857aa54ca9008fc3428a5f5e1a8bb7.tar.gz |
sysusers: allow defining additional sysusers lines via credentials
Diffstat (limited to 'units')
-rw-r--r-- | units/systemd-sysusers.service | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/units/systemd-sysusers.service b/units/systemd-sysusers.service index 47373307b3..91132dafa9 100644 --- a/units/systemd-sysusers.service +++ b/units/systemd-sysusers.service @@ -14,7 +14,8 @@ DefaultDependencies=no Conflicts=shutdown.target After=systemd-remount-fs.service Before=sysinit.target shutdown.target systemd-update-done.service -ConditionNeedsUpdate=/etc +ConditionNeedsUpdate=|/etc +ConditionCredential=|sysusers.extra [Service] Type=oneshot @@ -28,3 +29,6 @@ TimeoutSec=90s LoadCredential=passwd.hashed-password.root LoadCredential=passwd.plaintext-password.root LoadCredential=passwd.shell.root + +# Also, allow configuring extra sysusers lines via a credential +LoadCredential=sysusers.extra |