without this, if you restore an lxc container from a backup
while it has snapshots, the parser does not understand the
'parent' option and aborts
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE::LXC::destroy_lxc_container($storage_cfg, $vmid, $old_conf);
# do not copy all settings to restored container
- foreach my $opt (qw(rootfs digest snapshots arch ostype unprivileged)) {
+ foreach my $opt (qw(rootfs digest snapshots arch ostype unprivileged parent)) {
delete $old_conf->{$opt};
}
foreach my $opt (keys %$old_conf) {