You are not logged in.

#1 2012-10-20 15:09:09

moneytoo
Member
From: Czech Republic
Registered: 2012-04-04
Posts: 20

[Solved] Necessity to run efibootmgr after grub-install on UEFI (Wiki)

After installing Arch in UEFI with Grub and following this part of Begginer's Guide https://wiki.archlinux.org/index.php/Be … ide#GRUB_2 I noticed that running both grub-install and efibootmgr creates two identical boot entries (with different labes). Seems like grub-install already calls efibootmgr (sets label, boot order etc) so that running efibootmgr is not neccessary.
Can anyone verify that? I'm no expert so I don't want to modify wiki just like that.

Last edited by moneytoo (2012-10-21 10:12:53)

Offline

#2 2012-10-20 15:15:48

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Necessity to run efibootmgr after grub-install on UEFI (Wiki)

I have no idea what it does now, but I know that it did not used to.  It does now depend on efibootmgr, so it may be that it has been set up to do it for you now. 

Maybe you could put a not below that section that reads something like "Note: As of grub-efi-x86_64 v2.00, it seems that grub-install automatically calls on efibootmgr to create a bootlaoder entry"

Offline

#3 2012-10-20 23:00:59

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,136

Re: [Solved] Necessity to run efibootmgr after grub-install on UEFI (Wiki)

grub-install tries to create the bootloader entry but it is not always successful. It won't succeed if you are not booted in EFI mode, for example. It also won't succeed if the kernel gets updated before you modprobe efivars because the modprobe will fail to load the module in that case.

So the information about how to do this with efibootmgr should definitely be there but you might add a note explaining that it may not be necessary. (I tend to think it better that some people get 2 entries than that some people get none, though.)

EDIT: Also grub-install reports success even if it has failed to create the entry. So you cannot just check the exit status from this command.

Last edited by cfr (2012-10-20 23:01:54)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB