mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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;
|
boot.initrd.network.flushBeforeStage2 = flush;
|
||||||
systemd.services.check-flush = {
|
systemd.services.check-flush = {
|
||||||
requiredBy = ["multi-user.target"];
|
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"];
|
wants = ["network-pre.target"];
|
||||||
unitConfig.DefaultDependencies = false;
|
unitConfig.DefaultDependencies = false;
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
Loading…
Reference in New Issue
Block a user