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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux