Commit c5fb780e authored by Emmanuel Kasper's avatar Emmanuel Kasper Committed by Dietmar Maurer

Rename onboot and startup parameters to follow vm.conf synthax

This fixes the problem of containers not autostarting with onboot=1
parent 8cbe4998
......@@ -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 };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment