No description
b71ac53751
On a UEFI system, were no boot entry *grub* is present, currently, `grub-install` fails with an error. $ efibootmgr BootCurrent: 0000 Timeout: 0 seconds BootOrder: 0001,0006,0003,0004,0005 Boot0001 Diskette Drive Boot0003* USB Storage Device Boot0004* CD/DVD/CD-RW Drive Boot0005 Onboard NIC Boot0006* WDC WD2500AAKX-75U6AA0 $ sudo grub-install /dev/sda Installing for x86_64-efi platform. grub-install: error: efibootmgr failed to register the boot entry: Unknown error 22020. The error code is always different, and the error message (incorrectly) points to efibootmgr. But, the error is in GRUB’s function `grub_install_remove_efi_entries_by_distributor()`, where the variable `rc` for the return value, is uninitialized and never set, when no boot entry for the distributor is found. The content of that uninitialized variable is then returned as the error code of efibootmgr. Set the variable to 0, so that success is returned, when no entry needs to be deleted. Tested on Dell OptiPlex 7010 with firmware A28. $ sudo ./grub-install /dev/sda Installing for x86_64-efi platform. Installation finished. No error reported. [1]: https://github.com/rhboot/efibootmgr/issues/100 Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> |
||
---|---|---|
asm-tests | ||
build-aux | ||
conf | ||
docs | ||
grub-core | ||
include | ||
m4 | ||
po | ||
tests | ||
themes/starfield | ||
unicode | ||
util | ||
.gitignore | ||
ABOUT-NLS | ||
acinclude.m4 | ||
AUTHORS | ||
autogen.sh | ||
BUGS | ||
ChangeLog-2015 | ||
config.h.in | ||
configure.ac | ||
COPYING | ||
coreboot.cfg | ||
geninit.sh | ||
gentpl.py | ||
INSTALL | ||
linguas.sh | ||
Makefile.am | ||
Makefile.util.def | ||
NEWS | ||
README | ||
THANKS | ||
TODO |
This is GRUB 2, the second version of the GRand Unified Bootloader. GRUB 2 is rewritten from scratch to make GNU GRUB cleaner, safer, more robust, more powerful, and more portable. See the file NEWS for a description of recent changes to GRUB 2. See the file INSTALL for instructions on how to build and install the GRUB 2 data and program files. Please visit the official web page of GRUB 2, for more information. The URL is <http://www.gnu.org/software/grub/grub.html>. More extensive documentation is available in the Info manual, accessible using 'info grub' after building and installing GRUB 2. There are a number of important user-visible differences from the first version of GRUB, now known as GRUB Legacy. For a summary, please see: info grub Introduction 'Changes from GRUB Legacy'