Bug 1049552 - efibootmgr called too soon, if it fails then post install scripts don't run and resulting system is really messy to clean up
Summary: efibootmgr called too soon, if it fails then post install scripts don't run a...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-07 18:09 UTC by Chris Murphy
Modified: 2015-01-16 14:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-16 14:41:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 947142 0 unspecified CLOSED write to /sys/firmware/efi/vars/new_var results in ENOSPC 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1006304 0 unspecified CLOSED BootLoaderError: failed to set new efi boot target 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1047993 0 unspecified CLOSED Kernel fails to make NVRAM changes for efibootmgr 2021-02-22 00:41:40 UTC

Internal Links: 947142 1006304 1047993

Description Chris Murphy 2014-01-07 18:09:26 UTC
Description of problem:
There are some UEFI and maybe kernel bugs that cause the efibootmgr command to write NVRAM entries to fail. When that fails, anaconda fails to complete installation tasks. Because grub and shim packages have a fallback contingency for no NVRAM entry, we should move the anaconda issued efibootmgr command later than present, pretty much the last possible step. That way the root and user configurations are written, /etc/default/grub can be written, grub.cfg produced, and so on. So even if the NVRAM write fails, chances are the system can still boot.

Present behavior, it will not boot without a lot of manual intervention because so many post install things failed to complete.

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

How reproducible:
Always, *if* there is failure to write NVRAM entry via efibootmgr.

Steps to Reproduce:
1.
2.
3.

Actual results:
If NVRAM write fails, anaconda stops, no post install completes, system not bootable.

Expected results:
Do all the other stuff first, including post install, and cause efibootmgr to run after all of that. Then if it fails, we can probably still boot (and if not, there's still no harm done).

Additional info:


Bug 1006304
Bug 1006304

Comment 1 Robert Moskowitz 2014-01-07 19:21:27 UTC
Add Bug 1047993
	
where I report the efibootmgr fails due to kernel problems.

Comment 2 Chris Murphy 2014-04-16 02:43:12 UTC
This bug can probably be closed, see bug 1006304 comment 41 (and 11).

Comment 3 David Shea 2015-01-16 14:41:55 UTC
Closing per comment 2


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