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

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



From: Matthew Garrett <mjg redhat com>

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

Signed-off-by: Brian C. Lane <bcl redhat com>
---
 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


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