]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/LXC.pm
format_disk: call activate_volume()
[pve-container.git] / src / PVE / LXC.pm
index 53f77a3a428ce256b21f25ec6b473f4d86a5aa5e..f34447023664c355cfe04ac530e05167ab62d4fd 100644 (file)
@@ -2063,6 +2063,8 @@ sub format_disk {
 
     die "cannot format volume '$volid' with no storage\n" if !$storage;
 
+    PVE::Storage::activate_volumes($storage_cfg, [$volid]);
+
     my $path = PVE::Storage::path($storage_cfg, $volid);
 
     my ($vtype, undef, undef, undef, undef, $isBase, $format) =