From 621f76f3f249730f65d92c67abb2fb8fd932baef Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Thu, 26 Feb 2009 15:41:33 -0500 Subject: Move bootloader package information into the platform module. --- platform.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'platform.py') diff --git a/platform.py b/platform.py index 818f6af73..ef9ff0c8d 100644 --- a/platform.py +++ b/platform.py @@ -37,6 +37,7 @@ class Platform(object): architecture quirks in one place to avoid lots of platform checks throughout anaconda.""" _bootFSType = "ext3" + _bootloaderPackage = None _diskType = parted.diskType["msdos"] _minimumSector = 0 @@ -96,6 +97,10 @@ class Platform(object): return ret + @property + def bootloaderPackage(self): + return self._bootloaderPackage + def checkBootRequest(self, req, diskset): """Perform an architecture-specific check on the boot device. Not all platforms may need to do any checks. Raises an exception if there @@ -211,10 +216,13 @@ class Alpha(Platform): return class IA64(EFI): + _bootloaderPackage = "elilo" + def __init__(self, anaconda): EFI.__init__(self, anaconda) class PPC(Platform): + _bootloaderPackage = "yaboot" _ppcMachine = iutil.getPPCMachine() @property @@ -309,6 +317,8 @@ class NewWorldPPC(PPC): return ret class S390(Platform): + _bootloaderPackage = "s390utils" + def __init__(self, anaconda): Platform.__init__(self, anaconda) @@ -323,6 +333,7 @@ class Sparc(Platform): return start+1 class X86(EFI): + _bootloaderPackage = "grub" _isEfi = iutil.isEfi() def __init__(self, anaconda): -- cgit