2015-09-11 19:24:15 +02:00
|
|
|
Reference: bnc#869024
|
|
|
|
Add s390x and ppc64 support
|
2015-11-26 00:27:12 +01:00
|
|
|
Index: virt-manager-1.3.0/virtinst/urlfetcher.py
|
2015-09-11 19:24:15 +02:00
|
|
|
===================================================================
|
2015-11-26 00:27:12 +01:00
|
|
|
--- virt-manager-1.3.0.orig/virtinst/urlfetcher.py
|
|
|
|
+++ virt-manager-1.3.0/virtinst/urlfetcher.py
|
|
|
|
@@ -427,6 +427,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"
|
|
|
|
|
|
|
|
dclass = GenericDistro
|
|
|
|
if distribution:
|
2015-11-26 00:27:12 +01:00
|
|
|
@@ -966,10 +970,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
|