FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 02-09-2012, 09:40 PM
"Brian C. Lane"
 
Default 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_P MBR_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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 04:22 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org