diff options
author | nikstur <nikstur@outlook.com> | 2023-12-27 08:33:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 08:33:26 +0100 |
commit | c9569af3e095e0b146c0806dd2f2ae1f28f0736d (patch) | |
tree | 5c6d66f9ea192bada94736e0e5d1fecf3c9a0532 /nixos/tests/systemd-initrd-networkd.nix | |
parent | 56b8564a7d018564d5a58bce4c9dc997ae7d7ac0 (diff) | |
parent | 6f8091159ecec673fcafea1215ba190a86c99ebd (diff) |
Merge pull request #271326 from philiptaron/shutdown.target
treewide: depend on `shutdown.target` if `DefaultDependencies=no` in almost every case
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"; |