[pve-devel] applied: [PATCH container] VZDump: mark template disks as ro
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Mar 27 10:08:59 CET 2020
since immutable .raw base volumes cannot be mounted RW.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
src/PVE/VZDump/LXC.pm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index 25a50d1..09c4d47 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -135,6 +135,11 @@ sub prepare {
}
$data->{name} = $name;
+
+ # immutable raw base images need RO mount
+ if ($conf->{template} && !defined($data->{ro})) {
+ $data->{ro} = 1;
+ }
push @$disks, $data;
push @$volids, $volid
if $type eq 'volume';
--
2.20.1
More information about the pve-devel
mailing list