[pve-devel] [PATCH pve-container] Add handling for "arch" and "ostype" options in update_pct_config()

Dietmar Maurer dietmar at proxmox.com
Wed Aug 26 15:30:02 CEST 2015


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.kasper at 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') {




More information about the pve-devel mailing list