diff options
author | Chris Lumens <clumens@redhat.com> | 2009-10-21 13:35:28 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-10-21 13:35:28 -0400 |
commit | 5115cdbc8536d12db20a192a78a7c67121aa312b (patch) | |
tree | eda5b12012ae5f19eac1b16cc6b4c3809a4287fc /platform.py | |
parent | 0bd4f64a2a04970d55f22bac1fe1f8712b88ae5e (diff) | |
download | anaconda-5115cdbc8536d12db20a192a78a7c67121aa312b.tar.gz anaconda-5115cdbc8536d12db20a192a78a7c67121aa312b.tar.xz anaconda-5115cdbc8536d12db20a192a78a7c67121aa312b.zip |
Platform.bootloaderPackage -> Platform.packages
This seems to be a more future-proof way of doing things.
Diffstat (limited to 'platform.py')
-rw-r--r-- | platform.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/platform.py b/platform.py index 8697090cb..4140c4f81 100644 --- a/platform.py +++ b/platform.py @@ -39,10 +39,10 @@ class Platform(object): architecture quirks in one place to avoid lots of platform checks throughout anaconda.""" _bootFSType = "ext3" - _bootloaderPackage = None _diskType = parted.diskType["msdos"] _isEfi = iutil.isEfi() _minimumSector = 0 + _packages = [] _supportsMdRaidBoot = False _minBootPartSize = 50 _maxBootPartSize = 0 @@ -98,10 +98,6 @@ class Platform(object): return ret - @property - def bootloaderPackage(self): - return self._bootloaderPackage - def checkBootRequest(self, req): """Perform an architecture-specific check on the boot device. Not all platforms may need to do any checks. Returns a list of errors if @@ -160,6 +156,10 @@ class Platform(object): """Return the minimum starting sector for the provided disk.""" return self._minimumSector + @property + def packages (self): + return self._packages + def setDefaultPartitioning(self): """Return the default platform-specific partitioning information.""" return [PartSpec(mountpoint="/boot", fstype=self.bootFSType, size=200, @@ -279,14 +279,14 @@ class Alpha(Platform): return errors class IA64(EFI): - _bootloaderPackage = "elilo" + _packages = ["elilo"] def __init__(self, anaconda): EFI.__init__(self, anaconda) class PPC(Platform): - _bootloaderPackage = "yaboot" _bootFSType = "ext4" + _packages = ["yaboot"] _ppcMachine = iutil.getPPCMachine() _supportsMdRaidBoot = True @@ -440,7 +440,7 @@ class PS3(PPC): PPC.__init__(self, anaconda) class S390(Platform): - _bootloaderPackage = "s390utils" + _packages = ["s390utils"] def __init__(self, anaconda): Platform.__init__(self, anaconda) @@ -456,8 +456,8 @@ class Sparc(Platform): return start+1 class X86(EFI): - _bootloaderPackage = "grub" _bootFSType = "ext4" + _packages = ["grub"] _supportsMdRaidBoot = True def __init__(self, anaconda): |