Both values are auto-detected, so we should consider them read-only for now. I guess there is another way to solve the problem (do not call update_pct_config with those options)?
> On August 25, 2015 at 2:55 PM Emmanuel Kasper <e.kas...@proxmox.com> wrote: > > > Without this patch, restoring a vzdump backup fails. > --- > src/PVE/LXC.pm | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm > index d1a4ea6..05ab166 100644 > --- a/src/PVE/LXC.pm > +++ b/src/PVE/LXC.pm > @@ -1090,7 +1090,8 @@ sub update_pct_config { > } elsif ($opt eq 'description' || $opt eq 'onboot' || $opt eq > 'startup') > { > delete $conf->{$opt}; > } elsif ($opt eq 'nameserver' || $opt eq 'searchdomain' || > - $opt eq 'tty' || $opt eq 'console' || $opt eq 'cmode') { > + $opt eq 'tty' || $opt eq 'console' || $opt eq 'cmode' || > + $opt eq 'arch' || $opt eq 'ostype') { _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel