Skip to content

Commit

Permalink
nixos/tests/installer: Give eval failure on unsupported boot methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dezgeg committed Mar 24, 2018
1 parent 902b3a1 commit 3131daa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixos/tests/installer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ let
+ optionalString isEfi (if pkgs.stdenv.isAarch64
then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.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;
# Make sure that we get a login prompt etc.
Expand Down

0 comments on commit 3131daa

Please sign in to comment.