lol

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

+3 -2
+3 -2
nixos/tests/installer.nix
··· 80 + optionalString isEfi (if pkgs.stdenv.isAarch64 81 then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", '' 82 else ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", ''); 83 - in 84 - '' 85 $machine->start; 86 87 # Make sure that we get a login prompt etc.
··· 80 + optionalString isEfi (if pkgs.stdenv.isAarch64 81 then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", '' 82 else ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", ''); 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 '' 86 $machine->start; 87 88 # Make sure that we get a login prompt etc.