2015-09-11 19:24:15 +02:00
|
|
|
Reference: bnc#869024
|
|
|
|
Add s390x and ppc64 support
|
2017-08-09 21:02:00 +02:00
|
|
|
Index: virt-manager-1.4.2/virtinst/urlfetcher.py
|
2015-09-11 19:24:15 +02:00
|
|
|
===================================================================
|
2017-08-09 21:02:00 +02:00
|
|
|
--- virt-manager-1.4.2.orig/virtinst/urlfetcher.py
|
|
|
|
+++ virt-manager-1.4.2/virtinst/urlfetcher.py
|
2017-08-22 16:08:14 +02:00
|
|
|
@@ -440,6 +440,10 @@ def _distroFromSUSEContent(fetcher, arch
|
2015-09-11 19:24:15 +02:00
|
|
|
arch = "i586"
|
|
|
|
elif cbuf.find("s390x") != -1:
|
|
|
|
arch = "s390x"
|
|
|
|
+ elif cbuf.find("ppc64") != -1:
|
|
|
|
+ arch = "ppc64"
|
|
|
|
+ elif cbuf.find("ppc64le") != -1:
|
|
|
|
+ arch = "ppc64le"
|
|
|
|
|
2016-06-22 00:34:03 +02:00
|
|
|
def _parse_sle_distribution(d):
|
|
|
|
sle_version = d[1].strip().rsplit(' ')[4]
|
2017-08-22 16:08:14 +02:00
|
|
|
@@ -998,10 +1002,12 @@ class SuseDistro(Distro):
|
2015-09-11 19:24:15 +02:00
|
|
|
oldkern += "64"
|
|
|
|
oldinit += "64"
|
|
|
|
|
|
|
|
- if self.arch == "s390x":
|
|
|
|
+ if self.arch == "s390x" or \
|
|
|
|
+ self.arch == "ppc64" or self.arch == "ppc64le":
|
|
|
|
+
|
|
|
|
self._hvm_kernel_paths = [("boot/%s/linux" % self.arch,
|
|
|
|
"boot/%s/initrd" % self.arch)]
|
|
|
|
- # No Xen on s390x
|
|
|
|
+ # No Xen on s390x or ppc64
|
|
|
|
self._xen_kernel_paths = []
|
|
|
|
else:
|
|
|
|
# Tested with Opensuse >= 10.2, 11, and sles 10
|