[pve-devel] [PATCH pve-container] Do not skip unprivileged config parameter when restoring a container
Emmanuel Kasper
e.kasper at proxmox.com
Thu Dec 1 15:38:07 CET 2016
This allows to keep the parameter when restoring from a backup.
---
src/PVE/LXC/Create.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index 1f1ece1..11bc00d 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -114,7 +114,7 @@ sub restore_configuration {
my $oldconf = PVE::LXC::Config::parse_pct_config("/lxc/$vmid.conf", $raw);
foreach my $key (keys %$oldconf) {
- next if $key eq 'digest' || $key eq 'rootfs' || $key eq 'snapshots' || $key eq 'unprivileged' || $key eq 'parent';
+ next if $key eq 'digest' || $key eq 'rootfs' || $key eq 'snapshots' || $key eq 'parent';
next if $key =~ /^mp\d+$/; # don't recover mountpoints
next if $key =~ /^unused\d+$/; # don't recover unused disks
if ($restricted && $key eq 'lxc') {
--
2.1.4
More information about the pve-devel
mailing list