diff options
author | Philip Taron <philip.taron@gmail.com> | 2023-11-30 15:48:25 -0800 |
---|---|---|
committer | Philip Taron <philip.taron@gmail.com> | 2023-11-30 15:48:25 -0800 |
commit | 6f8091159ecec673fcafea1215ba190a86c99ebd (patch) | |
tree | b0e574a284cadbc9123d1fd3921601c25292fb32 /nixos/tests/systemd-initrd-networkd.nix | |
parent | 88dc5ded81a6ef0ab32920e78801ba1d68879863 (diff) |
nixos/tests/systemd-initrd-networkd: ensure correct ordering w.r.t. shutdown.target
Diffstat (limited to 'nixos/tests/systemd-initrd-networkd.nix')
-rw-r--r-- | nixos/tests/systemd-initrd-networkd.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/systemd-initrd-networkd.nix b/nixos/tests/systemd-initrd-networkd.nix index 9c4ddb6e4b363..691f4300d7a23 100644 --- a/nixos/tests/systemd-initrd-networkd.nix +++ b/nixos/tests/systemd-initrd-networkd.nix @@ -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"; |