Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 614585

Summary: disks with unbootable disklabel types selectable as boot device
Product: Red Hat Enterprise Linux 6 Reporter: David Lehman <dlehman>
Component: anacondaAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Martin Banas <mbanas>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: borgan, drjones, mbanas
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-13.21.90-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 12:31:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to block booting from GPT on non-EFI systems none

Description David Lehman 2010-07-14 19:33:48 UTC
Description of problem:
In the case of a GPT disk on an x86 system, where grub needs an MSDOS disklabel to boot from, we still offer the GPT-labelled disk as an option for the boot device in the cleardisks screen, and presumably also in the advanced bootloader screen. Since booting from the GPT-labelled disk will fail, we should not offer those devices as possible boot device.

Version-Release number of selected component (if applicable):
anaconda-13.21.56-1

How reproducible:
Always

Steps to Reproduce:
1. Create at least one gpt-labelled disk
2. Run an install, choose "replace existing linux..."
3. Activate the boot radiobutton next to the gpt disk
  
Actual results:
subsequent boot attempt will fail, if not grub installation before that

Expected results:
don't allow selection of unbootable device as boot device

Additional info:
This is related to 604059 in that both deal with mishandling of gpt disks on non-efi platforms.

Comment 1 RHEL Program Management 2010-07-15 14:08:29 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 2 Brian Lane 2010-07-20 05:34:36 UTC
Created attachment 433067 [details]
Patch to block booting from GPT on non-EFI systems

Here is one way to fix this.

Comment 3 Brian Lane 2010-07-20 05:35:56 UTC
Also see hansg's comments at https://www.redhat.com/archives/anaconda-devel-list/2010-July/msg00129.html

Comment 5 RHEL Program Management 2010-10-29 21:30:27 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 6 Brian Lane 2011-01-12 23:45:01 UTC
Created a simpler patch that just warns the user.

Comment 8 Brian Lane 2011-01-21 00:23:37 UTC
*** Bug 671143 has been marked as a duplicate of this bug. ***

Comment 9 Brian Lane 2011-01-21 00:46:48 UTC
Fixed the problem with text installs by removing the bold code.

Comment 10 Dave Cantrell 2011-01-24 23:02:20 UTC
*** Bug 671143 has been marked as a duplicate of this bug. ***

Comment 12 Martin Banas 2011-04-20 13:12:41 UTC
Retested in GUI with RHEL6.1-20110413.1, 2 disks, the second was GPT. Warning was displayed. Need to retest also in text mode.

Comment 13 Martin Banas 2011-04-21 08:26:07 UTC
The same message displayed in text mode. Moving to Verified.

     ┌─────────────┤ Writing storage configuration to disk ├──────────────┐     
     │                                                                    │     
     │ The partitioning options you have selected will now be written to  │     
     │ disk.  Any data on deleted or reformatted partitions will be lost. │     
     │                                                                    │     
     │ WARNING:                                                           │     
     │ You are using a GPT bootdisk on a non-EFI system. This may not     │     
     │ work, depending on you BIOS's support for booting from GPT disks.  │     
     │                                                                    │     
     │        ┌─────────┐               ┌───────────────────────┐         │     
     │        │ Go back │               │ Write changes to disk │         │     
     │        └─────────┘               └───────────────────────┘         │     
     │                                                                    │     
     │                                                                    │     
     └────────────────────────────────────────────────────────────────────┘

Comment 14 errata-xmlrpc 2011-05-19 12:31:09 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0530.html