From dbb7d2578b694deea96b7ecf0e8c7d46fe8ce762 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Mon, 9 Mar 2009 15:10:51 -0400 Subject: Move the mdRaidBootArches logic into the platform module. --- platform.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'platform.py') diff --git a/platform.py b/platform.py index 6db026e3e..2a765cd3f 100644 --- a/platform.py +++ b/platform.py @@ -40,6 +40,7 @@ class Platform(object): _bootloaderPackage = None _diskType = parted.diskType["msdos"] _minimumSector = 0 + _supportsMdRaidBoot = False def __init__(self, anaconda): """Creates a new Platform object. This is basically an abstract class. @@ -121,6 +122,11 @@ class Platform(object): """Return the default platform-specific partitioning information.""" return [("/boot", self.bootFSType, 200, None, 0, 0)] + @property + def supportsMdRaidBoot(self): + """Does the platform support /boot on MD RAID?""" + return self._supportsMdRaidBoot + class EFI(Platform): _diskType = parted.diskType["gpt"] @@ -214,6 +220,7 @@ class IA64(EFI): class PPC(Platform): _bootloaderPackage = "yaboot" _ppcMachine = iutil.getPPCMachine() + _supportsMdRaidBoot = True @property def ppcMachine(self): @@ -319,6 +326,7 @@ class Sparc(Platform): class X86(EFI): _bootloaderPackage = "grub" _isEfi = iutil.isEfi() + _supportsMdRaidBoot = True def __init__(self, anaconda): EFI.__init__(self, anaconda) -- cgit