Skip to content

Commit 3131daa

Browse files
committed
nixos/tests/installer: Give eval failure on unsupported boot methods
1 parent 902b3a1 commit 3131daa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

nixos/tests/installer.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ let
8080
+ optionalString isEfi (if pkgs.stdenv.isAarch64
8181
then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", ''
8282
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 ''
8586
$machine->start;
8687
8788
# Make sure that we get a login prompt etc.

0 commit comments

Comments
 (0)