67142b1ff7
e902fa55-force-binary-mode-with-FTP-servers.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=358
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
Reference: bnc#869024
|
|
Add s390x and ppc64 support
|
|
Index: virt-manager-1.4.2/virtinst/urlfetcher.py
|
|
===================================================================
|
|
--- virt-manager-1.4.2.orig/virtinst/urlfetcher.py
|
|
+++ virt-manager-1.4.2/virtinst/urlfetcher.py
|
|
@@ -440,6 +440,10 @@ def _distroFromSUSEContent(fetcher, arch
|
|
arch = "i586"
|
|
elif cbuf.find("s390x") != -1:
|
|
arch = "s390x"
|
|
+ elif cbuf.find("ppc64") != -1:
|
|
+ arch = "ppc64"
|
|
+ elif cbuf.find("ppc64le") != -1:
|
|
+ arch = "ppc64le"
|
|
|
|
def _parse_sle_distribution(d):
|
|
sle_version = d[1].strip().rsplit(' ')[4]
|
|
@@ -998,10 +1002,12 @@ class SuseDistro(Distro):
|
|
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
|