nixos/initrd-secrets: ensure correct ordering w.r.t. shutdown.target

This commit is contained in:
Philip Taron 2023-11-30 15:18:23 -08:00
parent 0db4d5b335
commit 1f73c2a7b6
No known key found for this signature in database

View File

@ -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