change default boot order to cdn

This commit is contained in:
Dietmar Maurer 2011-09-29 07:43:05 +02:00
parent 5ee957cced
commit 32baffb4e0

View File

@ -237,7 +237,7 @@ EODESC
type => 'string',
description => "Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).",
pattern => '[acdn]{1,4}',
default => 'cad',
default => 'cdn',
},
bootdisk => {
optional => 1,
@ -2034,14 +2034,10 @@ sub config_to_command {
push @$cmd, '-cpu', $conf->{cpu} if $conf->{cpu};
$boot_opt = "menu=on";
if ($conf->{boot}) {
$boot_opt .= ",order=$conf->{boot}";
}
push @$cmd, '-nodefaults';
push @$cmd, '-boot', $boot_opt if $boot_opt;
my $bootorder = $conf->{boot} || $confdesc->{boot}->{default};
push @$cmd, '-boot', "menu=on,order=$bootorder";
push @$cmd, '-no-acpi' if defined($conf->{acpi}) && $conf->{acpi} == 0;