diff options
author | Bob van der Linden <bobvanderlinden@gmail.com> | 2014-11-19 23:18:44 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-03-24 22:09:07 +0100 |
commit | c57a912016025f66d666f0da26bc998b49ae55a7 (patch) | |
tree | b6ae5051493137fd826bcc71d4ecf30e72abac02 /nixos/lib | |
parent | 9ff9949896c7ff0307ea60dc8d25de340860bfc4 (diff) |
nixos: test: add tests for booting installation iso in various ways
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/test-driver/Machine.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/lib/test-driver/Machine.pm b/nixos/lib/test-driver/Machine.pm index 85c2bfa88e1a..e0791692d3ef 100644 --- a/nixos/lib/test-driver/Machine.pm +++ b/nixos/lib/test-driver/Machine.pm @@ -37,6 +37,10 @@ sub new { if defined $args->{hda}; $startCommand .= "-cdrom $args->{cdrom} " if defined $args->{cdrom}; + $startCommand .= "-device piix3-usb-uhci -drive id=usbdisk,file=$args->{usb},if=none,readonly -device usb-storage,drive=usbdisk " + if defined $args->{usb}; + $startCommand .= "-bios $args->{bios} " + if defined $args->{bios}; $startCommand .= $args->{qemuFlags} || ""; } else { $startCommand = Cwd::abs_path $startCommand; |