diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-08-04 12:34:08 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-08-05 11:36:40 +0200 |
commit | 829c4fdfcdca1207f5bb40fbdf1a67a7e0859064 (patch) | |
tree | a62c5ef73129a9d2deba57a34bff762fec229c42 /booty/__init__.py | |
parent | 81cc86e56a897fc3778e1ee806600bfce2af4311 (diff) | |
download | anaconda-829c4fdfcdca1207f5bb40fbdf1a67a7e0859064.tar.gz anaconda-829c4fdfcdca1207f5bb40fbdf1a67a7e0859064.tar.xz anaconda-829c4fdfcdca1207f5bb40fbdf1a67a7e0859064.zip |
Pass InstalltData to booty __init__ as it needs access to many of its members
Currently we are passing storage and network to booty's __init__, for
writing the necessary kernel cmdline parameters for dracut for international
consoles / keyboards booty will also need access to keyboard and language,
instead of passing these all in seperately just pass InstalltData to booty's
__init__. This is a preparation patch for writing out the dracut kernel
cmdline commands for i18n support.
Diffstat (limited to 'booty/__init__.py')
-rw-r--r-- | booty/__init__.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/booty/__init__.py b/booty/__init__.py index 8f2d6a794..f0b571d39 100644 --- a/booty/__init__.py +++ b/booty/__init__.py @@ -28,25 +28,25 @@ class BootyNoKernelWarning: return self.value # return instance of the appropriate bootloader for our arch -def getBootloader(storage, network): +def getBootloader(instData): """Get the bootloader info object for your architecture""" if iutil.isX86(): import x86 - return x86.x86BootloaderInfo(storage, network) + return x86.x86BootloaderInfo(instData) elif iutil.isIA64(): import ia64 - return ia64.ia64BootloaderInfo(storage, network) + return ia64.ia64BootloaderInfo(instData) elif iutil.isS390(): import s390 - return s390.s390BootloaderInfo(storage, network) + return s390.s390BootloaderInfo(instData) elif iutil.isAlpha(): import alpha - return alpha.alphaBootloaderInfo(storage, network) + return alpha.alphaBootloaderInfo(instData) elif iutil.isPPC(): import ppc - return ppc.ppcBootloaderInfo(storage, network) + return ppc.ppcBootloaderInfo(instData) elif iutil.isSparc(): import sparc - return sparc.sparcBootloaderInfo(storage, network) + return sparc.sparcBootloaderInfo(instData) else: - return bootloaderInfo(storage, network) + return bootloaderInfo(instData) |