nixos/systemd-stage-1: nixos-find-nixos-closure before initrd.target

Without this, boot could proceed to the initrd cleanup step before the
closure was found, killing the service and breaking boot.
This commit is contained in:
Will Fancher 2024-11-18 21:12:08 -05:00
parent 5e4fbfb6b3
commit af8279fe38

View File

@ -515,7 +515,7 @@ in {
RequiresMountsFor = "/sysroot/nix/store";
DefaultDependencies = false;
};
before = [ "shutdown.target" ];
before = [ "initrd.target" "shutdown.target" ];
conflicts = [ "shutdown.target" ];
requiredBy = [ "initrd.target" ];
serviceConfig = {