Add the ability to spin ppc arches
This commit is contained in:
parent
4513804526
commit
4244cc89ef
@ -27,6 +27,8 @@ class Gather(yum.YumBase):
|
|||||||
self.doRepoSetup()
|
self.doRepoSetup()
|
||||||
if config.get('default', 'arch') == 'i386':
|
if config.get('default', 'arch') == 'i386':
|
||||||
arches = yum.rpmUtils.arch.getArchList('i686')
|
arches = yum.rpmUtils.arch.getArchList('i686')
|
||||||
|
elif config.get('default', 'arch') == 'ppc':
|
||||||
|
arches = yum.rpmUtils.arch.getArchList('ppc64')
|
||||||
else:
|
else:
|
||||||
arches = yum.rpmUtils.arch.getArchList(config.get('default', 'arch'))
|
arches = yum.rpmUtils.arch.getArchList(config.get('default', 'arch'))
|
||||||
self.doSackSetup(arches)
|
self.doSackSetup(arches)
|
||||||
|
@ -145,12 +145,13 @@ class Pungi:
|
|||||||
os.system('/usr/bin/createrepo %s' % args)
|
os.system('/usr/bin/createrepo %s' % args)
|
||||||
|
|
||||||
def doCreateIsos(self):
|
def doCreateIsos(self):
|
||||||
|
anaruntime = '/usr/lib/anaconda-runtime/boot'
|
||||||
discinfofile = os.path.join(self.topdir, '.discinfo') # we use this a fair amount
|
discinfofile = os.path.join(self.topdir, '.discinfo') # we use this a fair amount
|
||||||
mkisofsargs = '-v -U -J -R -T -V' # common mkisofs flags
|
mkisofsargs = '-v -U -J -R -T -V' # common mkisofs flags
|
||||||
bootargs = ''
|
bootargs = ''
|
||||||
x86bootargs = '-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table'
|
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'
|
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'),
|
isodir = os.path.join(self.config.get('default', 'destdir'), self.config.get('default', 'version'),
|
||||||
self.config.get('default', 'arch'), self.config.get('default', 'isodir'))
|
self.config.get('default', 'arch'), self.config.get('default', 'isodir'))
|
||||||
os.makedirs(isodir)
|
os.makedirs(isodir)
|
||||||
|
Loading…
Reference in New Issue
Block a user