Content-type check is only valid for mp from type 'volume'. The Content-type check is correct for rootfs and mount points. --- src/PVE/LXC/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm index 7e51b8d..39de691 100644 --- a/src/PVE/LXC/Config.pm +++ b/src/PVE/LXC/Config.pm @@ -937,7 +937,7 @@ sub update_pct_config { if ($opt =~ m/^mp(\d+)$/ || $opt eq 'rootfs') { $class->check_protection($conf, "can't update CT $vmid drive '$opt'"); my $mp = $opt eq 'rootfs' ? $class->parse_ct_rootfs($value) : $class->parse_ct_mountpoint($value); - $check_content_type->($mp); + $check_content_type->($mp) if ($mp->{type} eq 'volume'); } elsif ($opt eq 'hookscript') { PVE::GuestHelpers::check_hookscript($value); } elsif ($opt eq 'nameserver') { -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel