]> git.proxmox.com Git - pve-container.git/commitdiff
add ignore_ro flag to mount_all
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 30 May 2016 12:40:20 +0000 (14:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Jun 2016 05:21:19 +0000 (07:21 +0200)
src/PVE/LXC.pm

index 759ab6d7ba9bbbe9040bf3f79d2d8b70e088de2a..7b4afa2b3ecf82f745e856a20788a75eee1ca177 100644 (file)
@@ -918,7 +918,7 @@ sub umount_all {
 }
 
 sub mount_all {
-    my ($vmid, $storage_cfg, $conf) = @_;
+    my ($vmid, $storage_cfg, $conf, $ignore_ro) = @_;
 
     my $rootdir = "/var/lib/lxc/$vmid/rootfs";
     File::Path::make_path($rootdir);
@@ -930,6 +930,8 @@ sub mount_all {
        PVE::LXC::Config->foreach_mountpoint($conf, sub {
            my ($ms, $mountpoint) = @_;
 
+           $mountpoint->{ro} = 0 if $ignore_ro;
+
            mountpoint_mount($mountpoint, $rootdir, $storage_cfg);
         });
     };