mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
Merge pull request #871 from Ma27/fix-systemd-service-ordering
modules/sops: re-run sops-install-secrets.service at sysinit-reactivation.target
This commit is contained in:
commit
5745e46834
1 changed files with 3 additions and 1 deletions
|
|
@ -448,7 +448,9 @@ in
|
||||||
# When using sysusers we no longer are started as an activation script because those are started in initrd while sysusers is started later.
|
# When using sysusers we no longer are started as an activation script because those are started in initrd while sysusers is started later.
|
||||||
systemd.services.sops-install-secrets = lib.mkIf (regularSecrets != { } && cfg.useSystemdActivation) {
|
systemd.services.sops-install-secrets = lib.mkIf (regularSecrets != { } && cfg.useSystemdActivation) {
|
||||||
wantedBy = [ "sysinit.target" ];
|
wantedBy = [ "sysinit.target" ];
|
||||||
after = [ "systemd-sysusers.service" ];
|
after = [ "systemd-sysusers.service" "userborn.service" ];
|
||||||
|
requiredBy = [ "sysinit-reactivation.target" ];
|
||||||
|
before = [ "sysinit-reactivation.target" ];
|
||||||
environment = cfg.environment;
|
environment = cfg.environment;
|
||||||
unitConfig.DefaultDependencies = "no";
|
unitConfig.DefaultDependencies = "no";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue