From 4244cc89efcffc1d614b89fef9c8f1bf215d3d75 Mon Sep 17 00:00:00 2001 From: "root@dhcp83-138.boston.redhat.com" <> Date: Tue, 12 Dec 2006 12:21:28 -0500 Subject: [PATCH] Add the ability to spin ppc arches --- pypungi/gather.py | 2 ++ pypungi/pungi.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pypungi/gather.py b/pypungi/gather.py index 4e4c59a9..2e853948 100755 --- a/pypungi/gather.py +++ b/pypungi/gather.py @@ -27,6 +27,8 @@ class Gather(yum.YumBase): self.doRepoSetup() if config.get('default', 'arch') == 'i386': arches = yum.rpmUtils.arch.getArchList('i686') + elif config.get('default', 'arch') == 'ppc': + arches = yum.rpmUtils.arch.getArchList('ppc64') else: arches = yum.rpmUtils.arch.getArchList(config.get('default', 'arch')) self.doSackSetup(arches) diff --git a/pypungi/pungi.py b/pypungi/pungi.py index ce7b8f57..23aabf7e 100755 --- a/pypungi/pungi.py +++ b/pypungi/pungi.py @@ -145,12 +145,13 @@ class Pungi: os.system('/usr/bin/createrepo %s' % args) def doCreateIsos(self): + anaruntime = '/usr/lib/anaconda-runtime/boot' discinfofile = os.path.join(self.topdir, '.discinfo') # we use this a fair amount mkisofsargs = '-v -U -J -R -T -V' # common mkisofs flags bootargs = '' x86bootargs = '-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table' ia64bootargs = '-b images/boot.img -no-emul-boot' - ppcbootargs = '' # Boy, it would be nice if somebody who understood ppc helped out here... + ppcbootargs = '-part -hfs -r -l -sysid PPC -hfs-bless "./ppc/mac" -map %s -magic %s -no-desktop -allow-multidot -chrp-boot' % (os.path.join(anaruntime, 'mapping'), os.path.join(anaruntime, 'magic')) isodir = os.path.join(self.config.get('default', 'destdir'), self.config.get('default', 'version'), self.config.get('default', 'arch'), self.config.get('default', 'isodir')) os.makedirs(isodir)