summaryrefslogtreecommitdiffstats
path: root/nixos/tests
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-11-21 14:20:12 +0100
committerGitHub <noreply@github.com>2021-11-21 14:20:12 +0100
commit07f29d2db24d7d3fd5095b6da8a06c8675f48af6 (patch)
tree7941c65e37debfe3786afafa7eb27ab06a2e906b /nixos/tests
parent60b8a7ea0737c07d88443bd9628fe0b460cf1d8d (diff)
parent2175b157acf1fd338021bc162ec7c4d6d7f90306 (diff)
Merge pull request #146829 from r-burns/isx86
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/installer.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index f800975a4300..1ff3dc76f4b6 100644
--- a/nixos/tests/installer.nix
+++ b/nixos/tests/installer.nix
@@ -70,7 +70,7 @@ let
let iface = if grubVersion == 1 then "ide" else "virtio";
isEfi = bootLoader == "systemd-boot" || (bootLoader == "grub" && grubUseEfi);
bios = if pkgs.stdenv.isAarch64 then "QEMU_EFI.fd" else "OVMF.fd";
- in if !isEfi && !(pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) then
+ in if !isEfi && !pkgs.stdenv.hostPlatform.isx86 then
throw "Non-EFI boot methods are only supported on i686 / x86_64"
else ''
def assemble_qemu_flags():