From b7c6c80949bfe93ccd2c928a423f4bcdd0e6fc5c Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Dec 21 2012 15:25:26 +0000 Subject: reset the arch to ppc64 when making lorax calls so that the iso will run everywhere --- diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 7581044..848ae1c 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()