Bug 1388502

Summary: edk2-ovmf cannot boot fallback bootloader (\EFI\BOOT\GRUBX64.EFI) of installed Fedora
Product: [Fedora] Fedora Reporter: Jan Sedlák <jsedlak>
Component: edk2Assignee: Paolo Bonzini <pbonzini>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: berrange, crobinso, kraxel, pbonzini, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-27 13:36:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Sedlák 2016-10-25 14:01:05 UTC
Description of problem:
When I install Fedora in VM with UEFI using OVMF, it creates menu entry "Fedora" that points to \EFI\fedora\shim.efi. Installer also creates fallback file in \EFI\BOOT\GRUBX64.EFI which is used when I lose efivars or when "Fedora" menu entry is deleted.

On real hardware, choosing to boot from this disk automatically looks for this file and runs it. It creates menu entry "Fedora" again (if it doesn't exist) and then shows Fedora's GRUB.

In VM with OVMF, choosing to boot from this disk (or manually choosing to boot this file) freezes the computer.

Note that booting from this location (\EFI\BOOT\GRUBX64.EFI) from CD works without problem (otherwise it wouldn't boot from CD at all).

See reproducer here: https://jsedlak.fedorapeople.org/uefi2.webm

Version-Release number of selected component (if applicable):
edk2-ovmf-20160418gita8c39ba-5.fc24.noarch
edk2.git-ovmf-x64-0-20161020.b2209.g8e947c0.noarch

How reproducible:
Always.

Steps to Reproduce:
1. Install Fedora in VM using UEFI.
2. Reboot, press Escape during POST to get to OVMF's menu.
3. Choose Boot Maintenance Manager -> Boot From File, select disk, path \EFI\BOOT\GRUBX64.efi

Actual results:
It freezes.

Expected results:
It should show GRUB.

Comment 1 Jan Sedlák 2016-10-27 13:36:49 UTC
It looks like it's actually caused by shim: https://bugzilla.tianocore.org/show_bug.cgi?id=189