[virt-tools-list] virt-install: fix SLES11 installation on s390x

Christian Borntraeger borntraeger at de.ibm.com
Fri Jan 18 11:58:12 UTC 2019


self._os_variant returns sles11sp4 sles11sp3 and so on.
Lets match those as well to pickup the right kernels.

Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy at linux.ibm.com>
---
 virtinst/urldetect.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/urldetect.py b/virtinst/urldetect.py
index 2351f8d5..f96dc0f3 100644
--- a/virtinst/urldetect.py
+++ b/virtinst/urldetect.py
@@ -539,7 +539,7 @@ class SuseDistro(Distro):
                  "boot/%s/initrd-xen" % tree_arch))
 
         if (tree_arch == "s390x" and
-            (self._os_variant == "sles11" or self._os_variant == "sled11")):
+            str(self._os_variant).startswith(("sles11", "sled11"))):
             self._kernel_paths.append(
                 ("boot/s390x/vmrdr.ikr", "boot/s390x/initrd"))
 
-- 
2.19.1




More information about the virt-tools-list mailing list