]> git.proxmox.com Git - pve-container.git/commitdiff
allow to update rootfs config
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 11 Feb 2016 07:08:45 +0000 (08:08 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 11 Feb 2016 07:08:45 +0000 (08:08 +0100)
src/PVE/LXC.pm

index 5b419bb88a869847105cdf9f062869f15db385d0..0a6b451c38171826ea5dd35cd785bd3bc2109aa1 100644 (file)
@@ -1347,8 +1347,9 @@ sub update_pct_config {
            $conf->{$opt} = $value;
            $new_disks = 1;
         } elsif ($opt eq 'rootfs') {
+           next if $hotplug_error->($opt);
            check_protection($conf, "can't update CT $vmid drive '$opt'");
-           die "implement me: $opt";
+           $conf->{$opt} = $value;
        } elsif ($opt eq 'unprivileged') {
            die "unable to modify read-only option: '$opt'\n";
        } else {