mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 02:15:21 +09:00
nixos/systemd-stage-1: Order nixos activation after initrd-switch-root.target
Now it's placed between initrd-switch-root.target and initrd-switch-root.service, meaning it is truly the last thing to happen before switch-root, as it should be.
This commit is contained in:
parent
f065a81ab4
commit
6cfd95fc8c
1 changed files with 4 additions and 8 deletions
|
@ -581,14 +581,10 @@ in {
|
|||
];
|
||||
|
||||
services.initrd-nixos-activation = {
|
||||
requires = [
|
||||
config.boot.initrd.systemd.services.initrd-find-nixos-closure.name
|
||||
];
|
||||
after = [
|
||||
"initrd-fs.target"
|
||||
config.boot.initrd.systemd.services.initrd-find-nixos-closure.name
|
||||
];
|
||||
requiredBy = [ "initrd.target" ];
|
||||
after = [ "initrd-switch-root.target" ];
|
||||
requiredBy = [ "initrd-switch-root.service" ];
|
||||
before = [ "initrd-switch-root.service" ];
|
||||
unitConfig.DefaultDependencies = false;
|
||||
unitConfig = {
|
||||
AssertPathExists = "/etc/initrd-release";
|
||||
RequiresMountsFor = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue