nixos-test-driver: support netRomFile

Needed for UEFI PXE netboot testing.
This commit is contained in:
Nikolay Amiantov 2019-07-15 18:42:36 +03:00
parent e4837acf21
commit 81d35a9d7e

View File

@ -31,9 +31,12 @@ sub new {
if (!$startCommand) {
# !!! merge with qemu-vm.nix.
my $netArgs = "";
$netArgs .= ",romfile=$args->{netRomFile}"
if defined $args->{netRomFile};
$startCommand =
"qemu-kvm -m 384 " .
"-net nic,model=virtio \$QEMU_OPTS ";
"-device virtio-net-pci,netdev=net0${netArgs} \$QEMU_OPTS ";
if (defined $args->{hda}) {
if ($args->{hdaInterface} eq "scsi") {