nixos/tests/systemd-initrd-networkd: ensure correct ordering w.r.t. shutdown.target

This commit is contained in:
Philip Taron 2023-11-30 15:48:25 -08:00
parent 88dc5ded81
commit 6f8091159e
No known key found for this signature in database

View file

@ -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";