[pve-devel] [PATCH pve-container] Add handling for "arch" and "ostype" options in update_pct_config()
Emmanuel Kasper
e.kasper at proxmox.com
Wed Aug 26 16:25:19 CEST 2015
On 08/26/2015 03:30 PM, Dietmar Maurer wrote:
> 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)?
OK I will try to look at that (do not call update_pct_config
with those options) , but maybe takes some time, this will be my first
real dive in Perl !
>> 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