[pve-devel] [PATCH pve-manager] Rename onboot and startup parameters to follow vm.conf synthax

Emmanuel Kasper e.kasper at proxmox.com
Tue Sep 8 10:38:31 CEST 2015


This fixes the problem of containers not autostarting with onboot=1
---
 PVE/API2/Nodes.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 3ccbe88..f4bda13 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -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 };
-- 
2.1.4





More information about the pve-devel mailing list