reset the arch to ppc64 when making lorax calls so that the iso will run everywhere

This commit is contained in:
Dennis Gilmore 2012-12-21 09:25:26 -06:00
parent 8d54c4be1b
commit b7c6c80949
1 changed files with 5 additions and 0 deletions

View File

@ -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()