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.

(cherry picked from commit af8279fe38)
This commit is contained in:
Will Fancher 2024-11-18 21:12:08 -05:00 committed by github-actions[bot]
parent 58b22d18bd
commit b798b0d694

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 = {