about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2022-10-16 19:59:41 -0400
committerWill Fancher <elvishjerricco@gmail.com>2023-04-17 16:41:35 -0400
commit748f1329fcee7db22be526677089719a5276ba30 (patch)
tree3792b22e921a05b6c975496783240e43a1d78eef /nixos/tests
parentdd392d7c7694c762812f84b4d0a3ba8157ac8a73 (diff)
systemd-initrd: Automatically configure networking.interfaces
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/systemd-initrd-networkd.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/nixos/tests/systemd-initrd-networkd.nix b/nixos/tests/systemd-initrd-networkd.nix
index 872a8cd64b25d..1656f5d5e1898 100644
--- a/nixos/tests/systemd-initrd-networkd.nix
+++ b/nixos/tests/systemd-initrd-networkd.nix
@@ -8,12 +8,9 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
 
       boot.initrd.systemd = {
         enable = true;
-        network.networks."99-eth0" = {
-          matchConfig.Name = "eth0";
-          DHCP = "yes";
-        };
+        # Enable network-online to fail the test in case of timeout
         network.wait-online.timeout = 10;
-        # Drop the boot into emergency mode if we timeout
+        network.wait-online.anyInterface = true;
         targets.network-online.requiredBy = [ "initrd.target" ];
         services.systemd-networkd-wait-online.requiredBy =
           [ "network-online.target" ];