Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Server Development (http://www.linux-archive.org/ubuntu-server-development/)
-   -   Don't set the pmbr bootable flag on Macs, whether booted via EFI or not (http://www.linux-archive.org/ubuntu-server-development/634046-dont-set-pmbr-bootable-flag-macs-whether-booted-via-efi-not.html)

Matthew Garrett 02-16-2012 06:52 PM

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_P MBR_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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 03:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.