virt-manager/virtman-dont-allow-grub.xen-to-be-deleted.patch
Charles Arnold 47dab25b0a - Upstream bug fixes (bsc#1027942)
b9bc3b60-undefine-only-persistent-domain.patch
  7fc7e94f-fix-virtio-scsi-controller-target-calculation.patch
  2eb455c9-correctly-calculate-virtio-scsi-controller-index.patch

- bsc#1067263 - virt-install: ERROR unicode argument expected, got
  'str'
  f836e47b-virtinst-Fix-URLFetcher-for-reading-files.patch
- Drop virtinst-fix-replace-StringIO-with-io.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=379
2017-11-28 16:06:53 +00:00

17 lines
701 B
Diff

Reference: bnc#885094
grub.xen is required to boot Xen PV VMs using BTRFS. It belongs to
the grub2-x86_64-xen RPM and should never be deleted.
Index: virt-manager-1.4.3/virtManager/delete.py
===================================================================
--- virt-manager-1.4.3.orig/virtManager/delete.py
+++ virt-manager-1.4.3/virtManager/delete.py
@@ -241,7 +241,7 @@ def populate_storage_list(storage_list,
diskdata.append(("dtb", vm.get_xmlobj().os.dtb, True, False, True))
for target, path, ro, shared, is_media in diskdata:
- if not path:
+ if not path or path == "/usr/lib/grub2/x86_64-xen/grub.xen":
continue
# There are a few pieces here