Article 6K6H2 The update removes Linux from UEFI every time

The update removes Linux from UEFI every time

by
wojts1995
from LinuxQuestions.org on (#6K6H2)
Good morning

I have a nagging problem with UEFI

Every time I update my Linux or manually force a grub update (grub2-mkconfig) I lose the Linux entry in UEFI and have to manually add it from Linux Live

It seems that mkconfig only detect Windows Boot Manager:

Code:user@asus:~$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file...
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFi Firmware Settings...
doneMy setup generally looks like:

Code:root@asus:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 111.8G 0 disk
sdb 8:16 0 238.5G 0 disk
sdb1 8:17 0 600M 0 part /boot/efi
sdb2 8:18 0 1G 0 part /boot
sdb3 8:19 0 236.9G 0 part
luks-8175e767-799a-414c-90ce-cb1aba0645ea 253:0 0 236.9G 0 crypt /home
/
zram0

root@asus:~# efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001,0002
Boot0000* Fedora HD(1,GPT,b9e92121-f1e6-42bf-8cb0-9ac1ff9ac988,0x800,0x12c000)/\EFI\FEDORA\GRUBX64.EFI
Boot0001* Windows Boot Manager HD(1,GPT,b9e92121-f1e6-42bf-8cb0-9ac1ff9ac988,0x800,0x12c000)/\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI0000424f
Boot0002* UEFI OS HD(1,GPT,b9e92121-f1e6-42bf-8cb0-9ac1ff9ac988,0x800,0x12c000)/\EFI\BOOT\BOOTIA32.EFI0000424fThere is Windows on the sda (no partition visible, disk is hardware encrypted)

There is Linux on the sdb - in the ESP partition on this disk, Windows added its directory during installation and since then the above-mentioned problem occurs

1. How to solve the problem or go around it - for example by forcing "efibootmgr --create..." every time Linux is updated?

2. Additional question: what is the "UEFI OS" entry, can it be safely deleted?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments