]> git.proxmox.com Git - qemu-server.git/commitdiff
activate volume for cloudinit disk
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 18 May 2018 12:59:02 +0000 (14:59 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 22 May 2018 08:11:39 +0000 (10:11 +0200)
because it does not have to be activated (e.g. in case of lvm)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer/Cloudinit.pm

index d536a0f7239a4e9d9b6cd6cba699b25a275f76fe..3cdf3a6bfeb3ebc06e76d4c9e57995952bf14529 100644 (file)
@@ -30,6 +30,8 @@ sub commit_cloudinit_disk {
     my $storecfg = PVE::Storage::config();
     my $iso_path = PVE::Storage::path($storecfg, $drive->{file});
     my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
+    my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
+    $plugin->activate_volume($storeid, $scfg, $volname);
     my $format = PVE::QemuServer::qemu_img_format($scfg, $volname);
 
     my $size = PVE::Storage::file_size_info($iso_path);