Bug 723976

Summary: /boot/efi from USB boot media is picked up by storage
Product: Red Hat Enterprise Linux 6 Reporter: Brian Lane <bcl>
Component: anacondaAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: borgan, ctatman, mbanas, mganisin, pholica, srinivas_g_gowda
Target Milestone: rcKeywords: OtherQA, Regression
Target Release: 6.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-13.21.128-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 10:40:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 691780, 695900    
Attachments:
Description Flags
debug output from EFI system install from USB
none
Proposed patch
none
anaconda log - with the proposed patch none

Description Brian Lane 2011-07-21 16:35:16 UTC
Description of problem:
When installing from USB media on an EFI system the /boot/efi mountpoint is added to the list of partitions, even though the disk was not selected in the filter screen.

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

Steps to Reproduce:
1. Create a USB install using livecd-iso-to-disk and boot it on an EFI system.
2. Go through install screens and select autopart and review layout.
3. At the filter screen select the internal drive and not the USB media
4. Delete the /boot/efi partition and continue

Observe no warning about a missing /boot/efi partition. This is because it has selected the /boot/efi from the USB media.

See the attached storage log with additional debugging. Search for 'BCL DEBUG'.

Observe that on the first pass, where nothing was deleted, the partitions list has 2 different /boot/efi entries. On the 2nd pass (the last block of debug output) when the new /boot/efi was deleted in the partitioning screen, there is still a /boot/efi selected and it is the one on /dev/sda1 which is the USB install media.

0x7feeb305b310 is the /boot/efi on the USB and 0x7feeb308dd10 is the one to be created on /dev/sdb1 that was deleted.

Comment 1 Brian Lane 2011-07-21 16:36:05 UTC
Created attachment 514229 [details]
debug output from EFI system install from USB

Comment 3 Chris Lumens 2011-08-08 18:21:29 UTC
*** Bug 729062 has been marked as a duplicate of this bug. ***

Comment 7 Brian Lane 2011-08-08 20:27:47 UTC
This is being caused by the fix for bug 593984

I have just finished pushing a number of EFI changed to rawhide/F16 that relate to this and will work on back-porting them to RHEL6.

Comment 8 Brian Lane 2011-08-10 23:14:06 UTC
Created attachment 517709 [details]
Proposed patch

Comment 9 srinivas gowda 2011-08-11 09:58:34 UTC
(In reply to comment #8)
> Created attachment 517709 [details]
> Proposed patch

I don't see bug 729062 fixed with the proposed patch.

Comment 10 srinivas gowda 2011-08-11 12:03:30 UTC
Created attachment 517779 [details]
anaconda log - with the proposed patch

Comment 11 Brian Lane 2011-08-11 15:31:46 UTC
Sorry, your bug shouldn't be a dupe of this. On BIOS it shouldn't be trying to create a /boot/efi partition at all.

Comment 15 errata-xmlrpc 2011-12-06 10:40:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

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