File virtinst-keep-install-iso-attached.patch of Package virt-manager.9957

Older SLE guests have a two stage installation that need the ISO.
Newer SLE PV guests hang when a cdrom device is attached without
an ISO file.

Index: virt-manager-1.4.3/virtinst/guest.py
===================================================================
--- virt-manager-1.4.3.orig/virtinst/guest.py
+++ virt-manager-1.4.3/virtinst/guest.py
@@ -805,7 +805,8 @@ class Guest(XMLBuilder):
             # install.
             if (dev.is_cdrom() and
                 getattr(dev, "installer_media", False) and
-                not self._os_object.is_windows()):
+                not self._os_object.is_windows() and
+                not self.os_variant.startswith(("sles", "sled", "opensuse"))):
                 dev.path = None
 
     def _set_defaults(self):
openSUSE Build Service is sponsored by