mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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:
parent
5e4fbfb6b3
commit
af8279fe38
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user