]> git.proxmox.com Git - qemu-server.git/commitdiff
fixup: delete cloudinit disk before restoring
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 May 2019 10:09:51 +0000 (12:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 May 2019 10:09:56 +0000 (12:09 +0200)
cloudinit is just completely broken...
Until we rewrite this to a sane designe (i.e., never backup, mirror,
... any CI disk anywhere - the state is in the config and gets
created on start and deleted on stop anyway) do this..

Co-developed-by: Mira Limbek <m.limbek@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 7d7a6bf4e978abcf56b6a9d9c6220b9c73e5b8d1..c342addc7e263976386438fada774b63f0abd6f9 100644 (file)
@@ -6303,7 +6303,7 @@ sub restore_vma_archive {
            foreach_drive($oldconf, sub {
                my ($ds, $drive) = @_;
 
-               return if drive_is_cdrom($drive);
+               return if !$drive->{is_cloudinit} && drive_is_cdrom($drive);
 
                my $volid = $drive->{file};
                return if !$volid || $volid =~ m|^/|;