mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
nixos/initrd-secrets: ensure correct ordering w.r.t. shutdown.target
This commit is contained in:
parent
0db4d5b335
commit
1f73c2a7b6
@ -11,7 +11,8 @@
|
||||
description = "Copy secrets into place";
|
||||
# Run as early as possible
|
||||
wantedBy = [ "sysinit.target" ];
|
||||
before = [ "cryptsetup-pre.target" ];
|
||||
before = [ "cryptsetup-pre.target" "shutdown.target" ];
|
||||
conflicts = [ "shutdown.target" ];
|
||||
unitConfig.DefaultDependencies = false;
|
||||
|
||||
# We write the secrets to /.initrd-secrets and move them because this allows
|
||||
|
Loading…
Reference in New Issue
Block a user