]> git.proxmox.com Git - pve-container.git/commitdiff
call create_disks after updating rootfs
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 16 Mar 2016 09:14:01 +0000 (10:14 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Mar 2016 09:39:52 +0000 (10:39 +0100)
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.

src/PVE/LXC/Config.pm

index 6519852a79bdd381683f2ec7ff16d88559791291..ef4c24b131e9c9b53460b11db0dc6faebfda1d8e 100644 (file)
@@ -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') {