From 65d6075e14e41f5f8f6cf1ff715c382ebbcac387 Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 1 Nov 2023 22:09:25 +0300 Subject: [PATCH] nixos/tests/predictable-interface-names: fix eval for systemd-stage1 --- nixos/tests/predictable-interface-names.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/predictable-interface-names.nix b/nixos/tests/predictable-interface-names.nix index 42183625c7c9..51d5e8ae59b9 100644 --- a/nixos/tests/predictable-interface-names.nix +++ b/nixos/tests/predictable-interface-names.nix @@ -36,7 +36,7 @@ in pkgs.lib.listToAttrs (builtins.map ({ predictable, withNetworkd, systemdStage networking.useDHCP = !withNetworkd; # Check if predictable interface names are working in stage-1 - boot.initrd.postDeviceCommands = script; + boot.initrd.postDeviceCommands = lib.mkIf (!systemdStage1) script; boot.initrd.systemd = lib.mkIf systemdStage1 { enable = true;