diff options
author | Chris Lumens <clumens@redhat.com> | 2007-08-13 14:06:28 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-08-13 14:06:28 +0000 |
commit | 9fce515ba080eab488244f1d20d78ad00b22bb15 (patch) | |
tree | f3fef361318bd017797da73e75267e7d37b666cd /fsset.py | |
parent | 88cef50cffc157beb3c46bd45c0c37fffb568874 (diff) | |
download | anaconda-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.py | 29 |
1 files changed, 15 insertions, 14 deletions
@@ -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 |