From 0dc334fa58a921492e4d8fe1a1cffd1accc021cb Mon Sep 17 00:00:00 2001 From: Mauricio Faria de Oliveira Date: Wed, 22 Oct 2014 15:17:40 -0200 Subject: [PATCH] Add ppc64el support for 'virt-install --location' (Debian/Ubuntu) The installation of Debian/Ubuntu for ppc64el (a.k.a. ppc64le on Fedora/RHEL) fails with 'virt-install --location', as the arch dir and kernel filename are not correct for this arch/distros. This patch fixes it by adding checks for 'treeArch' and 'hvm_kernel_paths'. Signed-off-by: Mauricio Faria de Oliveira --- virtinst/urlfetcher.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py index 5549c1b7b..5b766668c 100644 --- a/virtinst/urlfetcher.py +++ b/virtinst/urlfetcher.py @@ -888,6 +888,8 @@ class DebianDistro(Distro): self._treeArch = "i386" elif self.uri.count("amd64"): self._treeArch = "amd64" + elif self.uri.count("ppc64el"): + self._treeArch = "ppc64el" else: self._treeArch = "i386" @@ -905,7 +907,10 @@ class DebianDistro(Distro): self._installer_name, self._treeArch) xenroot = "%s/netboot/xen/" % self._prefix - self._hvm_kernel_paths = [(hvmroot + "linux", hvmroot + "initrd.gz")] + if self._treeArch == "ppc64el": + self._hvm_kernel_paths = [(hvmroot + "vmlinux", hvmroot + "initrd.gz")] + else: + self._hvm_kernel_paths = [(hvmroot + "linux", hvmroot + "initrd.gz")] self._xen_kernel_paths = [(xenroot + "vmlinuz", xenroot + "initrd.gz")]