mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-25 06:03:52 +03:00
clone_disk : cloudinit drive: don't clone snapname
we don't snapshot cloudinit drive, this fix "qm clone <vmid> <targetvmid> --snapname mysnap" when a cloudinit drive exist
This commit is contained in:
parent
e6bac1f569
commit
8fa6a851ee
@ -6655,6 +6655,7 @@ sub clone_disk {
|
||||
my $name = undef;
|
||||
if (drive_is_cloudinit($drive)) {
|
||||
$name = "vm-$newvmid-cloudinit";
|
||||
$snapname = undef;
|
||||
# cloudinit only supports raw and qcow2 atm:
|
||||
if ($dst_format eq 'qcow2') {
|
||||
$name .= '.qcow2';
|
||||
|
Loading…
x
Reference in New Issue
Block a user