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 > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-16-2012, 04:52 PM
Matthew Garrett
 
Default Don't set GPT HFS+ partitions as bootable

Setting a GPT partition as bootable changes it to the EFI system partition
type, which is defined as FAT. Doing this for HFS+ confuses the firmware.
Skip setting it bootable in this scenario - the firmware is fine with that.
---
pyanaconda/storage/__init__.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index 7cb90ed..5317c1b 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -375,7 +375,7 @@ class Storage(object):
self.devicetree.processActions()
self.doEncryptionPassphraseRetrofits()

- # now set the boot partition's flag
+ # now set the boot partition's flag.
if self.anaconda:
if self.anaconda.bootloader.stage2_bootable:
boot = self.bootDevice
@@ -402,6 +402,13 @@ class Storage(object):
log.info("not setting boot flag on %s as there is"
"another active partition" % dev.name)
continue
+ # hfs+ partitions on gpt can't be marked bootable via
+ # parted
+ if dev.disk.format.partedDisk.type == "gpt" and
+ dev.format.type == "hfs+":
+ log.info("not setting boot flag on hfs+ partition"
+ " %s" % dev.name)
+ continue
log.info("setting boot flag on %s" % dev.name)
dev.bootable = True

--
1.7.7.6

_______________________________________________
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 09:36 AM.

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