forked from mirrors/nixpkgs
nixos/tests/systemd-initrd-networkd: ensure correct ordering w.r.t. shutdown.target
This commit is contained in:
parent
88dc5ded81
commit
6f8091159e
|
@ -33,7 +33,8 @@ let
|
|||
boot.initrd.network.flushBeforeStage2 = flush;
|
||||
systemd.services.check-flush = {
|
||||
requiredBy = ["multi-user.target"];
|
||||
before = ["network-pre.target" "multi-user.target"];
|
||||
before = [ "network-pre.target" "multi-user.target" "shutdown.target" ];
|
||||
conflicts = [ "shutdown.target" ];
|
||||
wants = ["network-pre.target"];
|
||||
unitConfig.DefaultDependencies = false;
|
||||
serviceConfig.Type = "oneshot";
|
||||
|
|
Loading…
Reference in a new issue