[pve-devel] [PATCH container 1/3] ignore ro flag when creating/restoring CT

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Jun 3 09:56:15 CEST 2016


---
Note: this was previously included in the refactoring
patch, got its own patch for clarity's sake..

 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 68628a1..123ca81 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -207,7 +207,7 @@ sub create_rootfs {
     PVE::LXC::Config->write_config($vmid, $conf);
 
     eval {
-	my $rootdir = PVE::LXC::mount_all($vmid, $storage_cfg, $conf);
+	my $rootdir = PVE::LXC::mount_all($vmid, $storage_cfg, $conf, 1);
         restore_and_configure($vmid, $archive, $rootdir, $conf, $password,
 			      $restore, $no_unpack_error, $ssh_keys);
     };
-- 
2.1.4




More information about the pve-devel mailing list