diff options
author | K900 <me@0upti.me> | 2023-11-01 22:09:25 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2023-11-01 22:09:25 +0300 |
commit | 65d6075e14e41f5f8f6cf1ff715c382ebbcac387 (patch) | |
tree | bf9f0f6a0f872cd9c2d9c035c4c43360d34db228 /nixos/tests/predictable-interface-names.nix | |
parent | 5bcffdc1f9527eeabc4014cd14907d8fb90215ed (diff) |
nixos/tests/predictable-interface-names: fix eval for systemd-stage1
Diffstat (limited to 'nixos/tests/predictable-interface-names.nix')
-rw-r--r-- | nixos/tests/predictable-interface-names.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/predictable-interface-names.nix b/nixos/tests/predictable-interface-names.nix index 42183625c7c93..51d5e8ae59b92 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; |