[pve-devel] [PATCH container 2/2] call create_disks after updating rootfs
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Mar 16 10:14:01 CET 2016
this allows to set the rootfs to <storage>:<size>,
automatically creating an empty volume of the specified
size on the specified storage, like for non-rootfs mps.
---
Note: this patch will only apply cleanly after the other patch from
this series.
src/PVE/LXC/Config.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 6519852..ef4c24b 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -885,6 +885,7 @@ sub update_pct_config {
PVE::LXC::Config->add_unused_volume($conf, $mp->{volume});
}
}
+ $new_disks = 1;
} elsif ($opt eq 'unprivileged') {
die "unable to modify read-only option: '$opt'\n";
} elsif ($opt eq 'ostype') {
--
2.1.4
More information about the pve-devel
mailing list