mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-03 01:29:13 +00:00
fixup: delete cloudinit disk before restoring
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>
This commit is contained in:
parent
2b2923aefd
commit
bf4a933e52
@ -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|^/|;
|
||||
|
Loading…
Reference in New Issue
Block a user