[f17-branch master] Mac's won't boot with the PMBR boot flag set (#754850)

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

 



From: Matthew Garrett <mjg@xxxxxxxxxx>

Add an exception to the GPT PMBR boot flag being set for macs.

Signed-off-by: Brian C. Lane <bcl@xxxxxxxxxx>
---
 pyanaconda/storage/formats/disklabel.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/formats/disklabel.py b/pyanaconda/storage/formats/disklabel.py
index c439c5f..f43468a 100644
--- a/pyanaconda/storage/formats/disklabel.py
+++ b/pyanaconda/storage/formats/disklabel.py
@@ -24,6 +24,7 @@ import os
 import copy
 
 from pyanaconda.anaconda_log import log_method_call
+from pyanaconda import iutil
 import parted
 import _ped
 from ..errors import *
@@ -160,8 +161,11 @@ 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):
-                self._partedDisk.setFlag(parted.DISK_GPT_PMBR_BOOT)
-                log.debug("Set pmbr_boot on %s" % (self._partedDisk,))
+                if iutil.isMactel():
+                    log.debug("Not setting pmbr_boot on %s" % (self._partedDisk,))
+                else:
+                    self._partedDisk.setFlag(parted.DISK_GPT_PMBR_BOOT)
+                    log.debug("Set pmbr_boot on %s" % (self._partedDisk,))
             else:
                 log.debug("Did not set pmbr_boot on %s" % (self._partedDisk,))
 
-- 
1.7.6.5

_______________________________________________
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