From b7c6c80949bfe93ccd2c928a423f4bcdd0e6fc5c Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 21 Dec 2012 09:25:26 -0600 Subject: [PATCH] reset the arch to ppc64 when making lorax calls so that the iso will run everywhere --- src/pypungi/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 7581044f..848ae1cd 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -923,6 +923,11 @@ class Pungi(pypungi.PungiBase): workdir = self.workdir outputdir = self.topdir + # on ppc64 we need to tell lorax to only use ppc64 packages so that the media will run on all 64 bit ppc boxes + if self.config.get('pungi', 'arch') == 'ppc64': + self.ayum.arch.setup_arch('ppc64') + self.ayum.compatarch = 'ppc64' + # run the command lorax = pylorax.Lorax() lorax.configure()