From a9e34ff905798ec1a727312de4137e48a7b8dd2f Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Thu, 8 Jun 2023 00:24:36 -0400 Subject: [PATCH] systemd stage 1 networking: Add network-pre to flush tests This isn't actually wanted by any units by default. --- nixos/tests/systemd-initrd-networkd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/systemd-initrd-networkd.nix b/nixos/tests/systemd-initrd-networkd.nix index 00ecbec5613c..8376276d8f63 100644 --- a/nixos/tests/systemd-initrd-networkd.nix +++ b/nixos/tests/systemd-initrd-networkd.nix @@ -12,6 +12,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { systemd.services.check-flush = { requiredBy = ["multi-user.target"]; before = ["network-pre.target" "multi-user.target"]; + wants = ["network-pre.target"]; unitConfig.DefaultDependencies = false; serviceConfig.Type = "oneshot"; path = [ pkgs.iproute2 pkgs.iputils pkgs.gnugrep ];