summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-08-13 14:06:28 +0000
committerChris Lumens <clumens@redhat.com>2007-08-13 14:06:28 +0000
commit9fce515ba080eab488244f1d20d78ad00b22bb15 (patch)
treef3fef361318bd017797da73e75267e7d37b666cd /fsset.py
parent88cef50cffc157beb3c46bd45c0c37fffb568874 (diff)
downloadanaconda-9fce515ba080eab488244f1d20d78ad00b22bb15.tar.gz
anaconda-9fce515ba080eab488244f1d20d78ad00b22bb15.tar.xz
anaconda-9fce515ba080eab488244f1d20d78ad00b22bb15.zip
Don't try to check for bootable EFI partitions on RAID (#250353).
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py29
1 files changed, 15 insertions, 14 deletions
diff --git a/fsset.py b/fsset.py
index 067176a0f..049459744 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1285,22 +1285,23 @@ MAILADDR root
if dev is None:
return
-
+
bootDev = dev.device
- part = partedUtils.get_partition_by_name(diskset.disks, bootDev)
- drive = partedUtils.get_partition_drive(part)
-
- # on ia64, *only* /boot/efi should be marked bootable
- # similarly, on pseries, we really only want the PReP partition active
- if rhpl.getArch() == "ia64" \
- or iutil.getPPCMachine() in ("pSeries", "iSeries", "PMac") \
- or (rhpl.getArch() in ("i386", "x86_64") \
- and (iutil.isEfi() \
- or partedUtils.hasGptLabel(diskset, drive))):
- if part and part.is_flag_available(parted.PARTITION_BOOT):
- part.set_flag(parted.PARTITION_BOOT, 1)
- return
+ if dev.getName() != "RAIDDevice":
+ part = partedUtils.get_partition_by_name(diskset.disks, bootDev)
+ drive = partedUtils.get_partition_drive(part)
+
+ # on ia64, *only* /boot/efi should be marked bootable
+ # similarly, on pseries, we really only want the PReP partition active
+ if rhpl.getArch() == "ia64" \
+ or iutil.getPPCMachine() in ("pSeries", "iSeries", "PMac") \
+ or (rhpl.getArch() in ("i386", "x86_64") \
+ and (iutil.isEfi() \
+ or partedUtils.hasGptLabel(diskset, drive))):
+ if part and part.is_flag_available(parted.PARTITION_BOOT):
+ part.set_flag(parted.PARTITION_BOOT, 1)
+ return
for drive in diskset.disks.keys():
foundActive = 0