[pve-devel] [PATCH pve-container 4/7] don't restore mountpoint settings

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Nov 25 15:25:14 CET 2015


---
 src/PVE/LXC/Create.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index d8f2083..12465bb 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -153,6 +153,7 @@ sub restore_and_configure {
 
 	    foreach my $key (keys %$oldconf) {
 		next if $key eq 'digest' || $key eq 'rootfs' || $key eq 'snapshots' || $key eq 'unprivileged';
+		next if $key =~ /^mp\d+$/; # don't recover mountpoints
 		$conf->{$key} = $oldconf->{$key} if !defined($conf->{$key});
 	    }
 	    unlink($pct_cfg_fn);
-- 
2.1.4





More information about the pve-devel mailing list