[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Don't set the pmbr bootable flag on Macs, whether booted via EFI or not



Macs object to seeing the active flag set in the pmbr, even if they're
booting via BIOS. Avoid doing that.
---
 pyanaconda/storage/formats/disklabel.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/formats/disklabel.py b/pyanaconda/storage/formats/disklabel.py
index 0629c26..bac042b 100644
--- a/pyanaconda/storage/formats/disklabel.py
+++ b/pyanaconda/storage/formats/disklabel.py
@@ -161,7 +161,8 @@ class DiskLabel(DeviceFormat):
 
             # Set the boot flag on the GPT PMBR, this helps some BIOS systems boot
             if self._partedDisk.isFlagAvailable(parted.DISK_GPT_PMBR_BOOT):
-                if iutil.isEfi():
+                # MAC canboot as EFI or as BIOS, neither should have PMBR boot set
+                if iutil.isEfi() or iutil.isMactel():
                     log.debug("Not setting pmbr_boot on %s" % (self._partedDisk,))
                 else:
                     self._partedDisk.setFlag(parted.DISK_GPT_PMBR_BOOT)
-- 
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]