summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-03 13:51:20 -0500
committerChris Lumens <clumens@redhat.com>2009-03-04 15:33:26 -0500
commit7249ed0f13ad75696421f58d74c400fe90ce6434 (patch)
tree1b1e8b68f3a4725a9b57c59b4047d01d5fff1ee7 /platform.py
parent9998edd3e898b8cc72b60e686cec2a6a841a6e34 (diff)
downloadanaconda-7249ed0f13ad75696421f58d74c400fe90ce6434.tar.gz
anaconda-7249ed0f13ad75696421f58d74c400fe90ce6434.tar.xz
anaconda-7249ed0f13ad75696421f58d74c400fe90ce6434.zip
Use the right attributes to build the bootloaderChoices dict.
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/platform.py b/platform.py
index 4adc5d106..2c35a5cbf 100644
--- a/platform.py
+++ b/platform.py
@@ -83,11 +83,11 @@ class Platform(object):
if not bootDev:
return ret
- if bootDev.device.getName() == "RAIDDevice":
- ret["boot"] = (bootDev.path, N_("RAID Device"))
+ if bootDev.type == "mdarray":
+ ret["boot"] = (bootDev.name, N_("RAID Device"))
ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
else:
- ret["boot"] = (bootDev.device, N_("First sector of boot partition"))
+ ret["boot"] = (bootDev.name, N_("First sector of boot partition"))
ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
return ret
@@ -140,7 +140,7 @@ class EFI(Platform):
if not bootDev:
return ret
- ret["boot"] = (bootDev.path, N_("EFI System Partition"))
+ ret["boot"] = (bootDev.name, N_("EFI System Partition"))
return ret
def checkBootRequest(self, req, diskset):
@@ -246,11 +246,11 @@ class IPSeriesPPC(PPC):
if not bootDev:
return ret
- if bootDev.device.getName() == "RAIDDevice":
- ret["boot"] = (bootDev.path, N_("RAID Device"))
+ if bootDev.type == "mdarray":
+ ret["boot"] = (bootDev.name, N_("RAID Device"))
ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
else:
- ret["boot"] = (bootDev.device, N_("PPC PReP Boot"))
+ ret["boot"] = (bootDev.name, N_("PPC PReP Boot"))
return ret
@@ -295,11 +295,11 @@ class NewWorldPPC(PPC):
if not bootDev:
return ret
- if bootDev.device.getName() == "RAIDDevice":
- ret["boot"] = (bootDev.path, N_("RAID Device"))
+ if bootDev.type == "mdarray":
+ ret["boot"] = (bootDev.name, N_("RAID Device"))
ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
else:
- ret["boot"] = (bootDev.path, N_("Apple Bootstrap"))
+ ret["boot"] = (bootDev.name, N_("Apple Bootstrap"))
for (n, device) in enumerate(self.anaconda.id.storage.partitions):
if device.format.type == "hfs" and device.bootable and device.path != bootDev.path:
ret["boot%d" % n] = (device.path, N_("Apple Bootstrap"))
@@ -355,11 +355,11 @@ class X86(EFI):
if not bootDev:
return {}
- if bootDev.device.getName() == "RAIDDevice":
- ret["boot"] = (bootDev.path, N_("RAID Device"))
+ if bootDev.type == "mdarray":
+ ret["boot"] = (bootDev.name, N_("RAID Device"))
ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
else:
- ret["boot"] = (bootDev.device, N_("First sector of boot partition"))
+ ret["boot"] = (bootDev.name, N_("First sector of boot partition"))
ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
return ret