Bug 1236934 - efibootmgr: Could not add entry to BootOrder: No such file or directory
Summary: efibootmgr: Could not add entry to BootOrder: No such file or directory
Keywords:
Status: CLOSED DUPLICATE of bug 1235323
Alias: None
Product: Fedora
Classification: Fedora
Component: efibootmgr
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-30 03:39 UTC by Chris Murphy
Modified: 2016-04-13 19:27 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-07-22 16:20:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
program.log (37.66 KB, text/plain)
2015-06-30 03:39 UTC, Chris Murphy
no flags Details
anaconda.log (42.04 KB, text/plain)
2015-06-30 03:39 UTC, Chris Murphy
no flags Details
storage.log (232.95 KB, text/plain)
2015-06-30 03:40 UTC, Chris Murphy
no flags Details
screenshot anaconda installing boot loader error (179.20 KB, image/png)
2015-07-01 15:15 UTC, Chris Murphy
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.