diff options
author | Jeremy Katz <katzj@redhat.com> | 2009-06-30 15:58:08 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2009-07-01 10:21:37 -0400 |
commit | 730ced61e467e10ed620c2a6ee18c7695837a6b8 (patch) | |
tree | 269cebf5a97eea963d083ce99284848df69a99eb /booty/__init__.py | |
parent | d688d02f8482492df54f703c658569fe2e1cad15 (diff) | |
download | anaconda-730ced61e467e10ed620c2a6ee18c7695837a6b8.tar.gz anaconda-730ced61e467e10ed620c2a6ee18c7695837a6b8.tar.xz anaconda-730ced61e467e10ed620c2a6ee18c7695837a6b8.zip |
Use iutil arch specifiers rather than rhpl
Switch to using iutil.isFoo() methods rather than checking the
value of rhpl.getArch()
Diffstat (limited to 'booty/__init__.py')
-rw-r--r-- | booty/__init__.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/booty/__init__.py b/booty/__init__.py index fc34a56e3..9ee639864 100644 --- a/booty/__init__.py +++ b/booty/__init__.py @@ -16,7 +16,7 @@ # """Module for manipulation and creation of boot loader configurations""" -import rhpl +import iutil from bootloaderInfo import * from bootloader import * @@ -30,25 +30,22 @@ class BootyNoKernelWarning: # return instance of the appropriate bootloader for our arch def getBootloader(storage): """Get the bootloader info object for your architecture""" - if rhpl.getArch() == 'i386': + if iutil.isX86(): import x86 return x86.x86BootloaderInfo(storage) - elif rhpl.getArch() == 'ia64': + elif iutil.isIA64(): import ia64 return ia64.ia64BootloaderInfo(storage) - elif rhpl.getArch() == 's390' or rhpl.getArch() == "s390x": + elif iutil.isS390(): import s390 return s390.s390BootloaderInfo(storage) - elif rhpl.getArch() == "alpha": + elif iutil.isAlpha(): import alpha return alpha.alphaBootloaderInfo(storage) - elif rhpl.getArch() == "x86_64": - import x86 - return x86.x86BootloaderInfo(storage) - elif rhpl.getArch() == "ppc": + elif iutil.isPPC(): import ppc return ppc.ppcBootloaderInfo(storage) - elif rhpl.getArch() == "sparc": + elif iutil.isSparc(): import sparc return sparc.sparcBootloaderInfo(storage) else: |