summaryrefslogtreecommitdiffstats
path: root/pyanaconda/storage/formats
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-02-09 14:00:42 -0800
committerBrian C. Lane <bcl@redhat.com>2012-02-09 17:35:44 -0800
commit665116304435aff340b4aef300247e3806e2b7ad (patch)
treee87221f9fd0984ae50f7138928b736ede93f757f /pyanaconda/storage/formats
parent77992518b22b82c9a33a5ab364502fefb256f52f (diff)
downloadanaconda-665116304435aff340b4aef300247e3806e2b7ad.tar.gz
anaconda-665116304435aff340b4aef300247e3806e2b7ad.tar.xz
anaconda-665116304435aff340b4aef300247e3806e2b7ad.zip
Skip setting PMBR boot flag on EFI (#754850)
Macs won't boot with the PMBR boot flag set, and EFI systems won't need it set so skip it when the system is an EFI system. Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'pyanaconda/storage/formats')
-rw-r--r--pyanaconda/storage/formats/disklabel.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pyanaconda/storage/formats/disklabel.py b/pyanaconda/storage/formats/disklabel.py
index c439c5f81..0629c26d0 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.isEfi():
+ 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,))