lol

nixos/tests/installer: Give eval failure on unsupported boot methods

+3 -2
+3 -2
nixos/tests/installer.nix
··· 80 80 + optionalString isEfi (if pkgs.stdenv.isAarch64 81 81 then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", '' 82 82 else ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", ''); 83 - in 84 - '' 83 + in if !isEfi && !(pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) then 84 + throw "Non-EFI boot methods are only supported on i686 / x86_64" 85 + else '' 85 86 $machine->start; 86 87 87 88 # Make sure that we get a login prompt etc.