nixos/tests/installer: Give eval failure on unsupported boot methods
This commit is contained in:
parent
902b3a161c
commit
3131daace1
@ -80,8 +80,9 @@ let
|
|||||||
+ optionalString isEfi (if pkgs.stdenv.isAarch64
|
+ optionalString isEfi (if pkgs.stdenv.isAarch64
|
||||||
then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", ''
|
then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", ''
|
||||||
else ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", '');
|
else ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", '');
|
||||||
in
|
in if !isEfi && !(pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) then
|
||||||
''
|
throw "Non-EFI boot methods are only supported on i686 / x86_64"
|
||||||
|
else ''
|
||||||
$machine->start;
|
$machine->start;
|
||||||
|
|
||||||
# Make sure that we get a login prompt etc.
|
# Make sure that we get a login prompt etc.
|
||||||
|
Loading…
Reference in New Issue
Block a user