From: Fabian Grünbichler Date: Mon, 30 May 2016 12:40:20 +0000 (+0200) Subject: add ignore_ro flag to mount_all X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=25321b68f020e797774bb2548899966896e52217;p=pve-container.git add ignore_ro flag to mount_all --- diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 759ab6d..7b4afa2 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -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); }); };