mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 09:20:13 +00:00
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:
parent
dea6f86169
commit
eb5d01365b
@ -1147,10 +1147,10 @@ my $get_start_stop_list = sub {
|
|||||||
|
|
||||||
if ($d->{type} eq 'lxc') {
|
if ($d->{type} eq 'lxc') {
|
||||||
my $conf = PVE::LXC::load_config($vmid);
|
my $conf = PVE::LXC::load_config($vmid);
|
||||||
return if $autostart && !$conf->{'pve.onboot'};
|
return if $autostart && !$conf->{'onboot'};
|
||||||
|
|
||||||
if ($conf->{'pve.startup'}) {
|
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});
|
$startup->{order} = $bootorder if !defined($startup->{order});
|
||||||
} else {
|
} else {
|
||||||
$startup = { order => $bootorder };
|
$startup = { order => $bootorder };
|
||||||
|
Loading…
Reference in New Issue
Block a user