Drop obsolete boot=on parameter

Changed files
+8 -8
nixos
lib
test-driver
+8 -8
nixos/lib/test-driver/Machine.pm
···
my ($class, $args) = @_;
my $startCommand = $args->{startCommand};
-
+
my $name = $args->{name};
if (!$name) {
$startCommand =~ /run-(.*)-vm$/ if defined $startCommand;
···
"qemu-kvm -m 384 " .
"-net nic,model=virtio \$QEMU_OPTS ";
my $iface = $args->{hdaInterface} || "virtio";
-
$startCommand .= "-drive file=" . Cwd::abs_path($args->{hda}) . ",if=$iface,boot=on,werror=report "
+
$startCommand .= "-drive file=" . Cwd::abs_path($args->{hda}) . ",if=$iface,werror=report "
if defined $args->{hda};
$startCommand .= "-cdrom $args->{cdrom} "
if defined $args->{cdrom};
···
eval {
local $SIG{CHLD} = sub { die "QEMU died prematurely\n"; };
-
+
# Wait until QEMU connects to the monitor.
accept($self->{monitor}, $monitorS) or die;
···
$self->{socket}->autoflush(1);
};
die "$@" if $@;
-
+
$self->waitForMonitorPrompt;
$self->log("QEMU running (pid $pid)");
-
+
$self->{pid} = $pid;
$self->{booted} = 1;
}
···
alarm 300;
readline $self->{socket} or die "the VM quit before connecting\n";
alarm 0;
-
+
$self->log("connected to guest root shell");
$self->{connected} = 1;
···
sub execute_ {
my ($self, $command) = @_;
-
+
$self->connect;
print { $self->{socket} } ("( $command ); echo '|!=EOF' \$?\n");
···
sub crash {
my ($self) = @_;
return unless $self->{booted};
-
+
$self->log("forced crash");
$self->sendMonitorCommand("quit");