Bug 1236934

Summary: efibootmgr: Could not add entry to BootOrder: No such file or directory
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: efibootmgrAssignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, g.kaviyarasu, jonathan, pjones, surya_prabhakar, vanmeeuwen+fedora
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 16:20:13 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:
Embargoed:
Attachments:
Description Flags
program.log
none
anaconda.log
none
storage.log
none
screenshot anaconda installing boot loader error none

Description Chris Murphy 2015-06-30 03:39:01 UTC
Description of problem: Anaconda is asking efibootmgr to set an NVRAM variable for a path that doesn't exist.


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

How reproducible:
Always

Steps to Reproduce:
1. Do a UEFI installation


Actual results:

Error message says the bootloader wasn't installed and that it's probably a firmware or kernel bug. program log shows:

23:24:35,520 INFO program: Running... efibootmgr -c -w -L Fedora -d /dev/sda -p 1 -l \EFI\fedora\shim.efi
23:24:35,541 INFO program: efibootmgr: Could not add entry to BootOrder: No such file or directory



Expected results:

Anaconda should have efibootmgr path to shim as /boot/efi/EFI/fedora/shim.efi


Additional info:

This could be fatal in a dual boot scenario if an existing BOOTX64.EFI is not overwritten by Anaconda (shim.efi as BOOTX64.EFI for fallback boot absent a proper NVRAM entry).

Comment 1 Chris Murphy 2015-06-30 03:39:37 UTC
Created attachment 1044539 [details]
program.log

Comment 2 Chris Murphy 2015-06-30 03:39:49 UTC
Created attachment 1044540 [details]
anaconda.log

Comment 3 Chris Murphy 2015-06-30 03:40:02 UTC
Created attachment 1044541 [details]
storage.log

Comment 4 David Shea 2015-06-30 18:26:46 UTC
-l specifies the loader name which will be used by the EFI firmware, so the path is local to the EFI partition and uses \ as the directory separator.

Comment 5 Chris Murphy 2015-06-30 18:42:17 UTC
I don't understand how this is not a bug. I get an error message during the installation, there was a failure here. An NVRAM entry was not set.

When I do:
efibootmgr -c -w -L Fedora -d /dev/sda -p 1 -l \\EFI\\fedora\\shim.efi

I get the same error message as in the program.log, and there is no NVRAM entry.

When I do:
efibootmgr -c -w -L Fedora -d /dev/sda -p 1 -l \\boot\efi\\EFI\\fedora\\shim.efi

There is no error, and there is a Fedora entry in NVRAM.

Comment 6 Chris Murphy 2015-06-30 18:43:32 UTC
Rather:
\\boot\\efi\\EFI\\fedora\\shim.efi

Comment 7 Chris Murphy 2015-07-01 15:13:50 UTC
Fedora 22 program.log command:
Running... efibootmgr -c -w -L Fedora -d /dev/sda -p 1 -l \EFI\fedora\shim.efi
BootCurrent: 0000
BootOrder: 0005,0000,0001,0002,0003,0004
Boot0000* Mac Boot
Boot0001* Mac Boot
Boot0002* EFI DVD/CDROM
Boot0003* EFI Hard Drive
Boot0004* EFI Internal Shell
Boot0005* Fedora

Fedora 23 program.log command:
Running... efibootmgr -c -w -L Fedora -d /dev/sda -p 1 -l \EFI\fedora\shim.efi
efibootmgr: Could not add entry to BootOrder: No such file or directory

Fedora 22 UEFI installation always succeeds. Fedora 23 UEFI installation always hits this error (see screenshot of what I see in Anaconda). And yet this morning this command in the same install environment where it failed for Anaconda, there is no error:

# efibootmgr -c -w -L Fedora -d /dev/sda -p 1 -l \\EFI\\fedora\\shim.efi

So I don't know what's going on...

Comment 8 Chris Murphy 2015-07-01 15:15:10 UTC
Created attachment 1045127 [details]
screenshot anaconda installing boot loader error

Comment 9 Chris Murphy 2015-07-22 16:20:13 UTC

*** This bug has been marked as a duplicate of bug 1235323 ***