Rename onboot and startup parameters to follow vm.conf synthax

This fixes the problem of containers not autostarting with onboot=1
This commit is contained in:
Emmanuel Kasper 2015-09-08 10:38:31 +02:00 committed by Dietmar Maurer
parent dea6f86169
commit eb5d01365b

View File

@ -1147,10 +1147,10 @@ my $get_start_stop_list = sub {
if ($d->{type} eq 'lxc') {
my $conf = PVE::LXC::load_config($vmid);
return if $autostart && !$conf->{'pve.onboot'};
return if $autostart && !$conf->{'onboot'};
if ($conf->{'pve.startup'}) {
$startup = PVE::JSONSchema::pve_parse_startup_order($conf->{'pve.startup'});
$startup = PVE::JSONSchema::pve_parse_startup_order($conf->{'startup'});
$startup->{order} = $bootorder if !defined($startup->{order});
} else {
$startup = { order => $bootorder };