0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Fix the tests.installer.grub1 test

GRUB 1 doesn't understand /dev/vda, so use a SCSI rather than virtio disk.
This commit is contained in:
Eelco Dolstra 2012-07-26 15:09:01 -04:00
parent 51765e6333
commit 1a2b3cc5e4
2 changed files with 20 additions and 20 deletions

View file

@ -29,8 +29,10 @@ sub new {
$startCommand =
"qemu-kvm -m 384 " .
"-net nic,model=virtio \$QEMU_OPTS ";
$startCommand .= "-drive file=" . Cwd::abs_path($args->{hda}) . ",if=virtio,boot=on,werror=report "
my $iface = $args->{hdaInterface} or "virtio";
$startCommand .= "-drive file=" . Cwd::abs_path($args->{hda}) . ",if=$iface,boot=on,werror=report "
if defined $args->{hda};
$startCommand .= "-cdrom $args->{cdrom} "
if defined $args->{cdrom};
$startCommand .= $args->{qemuFlags} || "";