You are not logged in.

#1 2018-12-21 23:23:18

thorstenhirsch
Member
Registered: 2005-08-03
Posts: 102

BIOS update resets UEFI boot list (efivars)

Every time I update the BIOS (or "firmware") of my Gigabyte AB350M-DS3H the UEFI boot list is cleared / reset to default. So my entry for booting Arch directly via its kernel (no grub, no efistub) is gone, I have to boot from USB stick and re-create a boot entry with efibootmgr. I think the boot settings are saved in the efivars, please correct me if I'm wrong.

Is there any way to preserve the efivars on firmware update?

Offline

#2 2018-12-22 06:43:17

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: BIOS update resets UEFI boot list (efivars)

Nope, afraid not.

This is a 'feature' of a lot of UEFI motherboards.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-12-22 08:53:18

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: BIOS update resets UEFI boot list (efivars)

As Slithery answer you, there is probably nothing to do. I do not think that's a bad idea, though. Flashing the firmware erase every stored information in the firmware. You can actually have problems with BAD UEFI variables / settings; maybe up to the point to brick the system. This feature ensures that refreshing the firmware will unbrick the motherboard if some things became corrupted.

Now, how often do you update the firmware? It's usually not something you do very often.

Offline

#4 2018-12-22 11:10:00

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: BIOS update resets UEFI boot list (efivars)

olive wrote:

This feature ensures that refreshing the firmware will unbrick the motherboard if some things became corrupted.

If the motherboard was bricked, how could you boot in the first place and flash new firmware? So I am not sure I follow that logic.

Boot entries are preserved just fine on my HP PC after BIOS updates, so if some BIOSes delete them, I would consider that anti-Linux trolling by the hardware manufacturers...

Offline

#5 2018-12-22 11:22:49

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: BIOS update resets UEFI boot list (efivars)

Morn wrote:
olive wrote:

This feature ensures that refreshing the firmware will unbrick the motherboard if some things became corrupted.

If the motherboard was bricked, how could you boot in the first place and flash new firmware? So I am not sure I follow that logic.

Because most UEFI motherboards allow you to flash directly from a USB even if you can't boot an OS.

Boot entries are preserved just fine on my HP PC after BIOS updates, so if some BIOSes delete them, I would consider that anti-Linux trolling by the hardware manufacturers...

What? Why is this anti-linux?
If you install your bootloaders *.efi to the default location like Windows does then no EFI entries are needed.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2018-12-22 13:38:17

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: BIOS update resets UEFI boot list (efivars)

Slithery wrote:

What? Why is this anti-linux?
If you install your bootloaders *.efi to the default location like Windows does then no EFI entries are needed.

So if you use a boot manager like rEFInd, it would not not be affected by this kind of reset? Well I guess that is good news then. But still I see no technical reason for resetting these EFI vars. Other BIOSes seem to do just fine without a reset.

On non-UEFI systems, Windows 10 sometimes makes itself the default boot choice even when Linux was selected as the default previously. Somehow "accidental" boot order resets always mysteriously favor Windows...

Offline

#7 2018-12-22 13:44:48

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: BIOS update resets UEFI boot list (efivars)

Morn wrote:

On non-UEFI systems, Windows 10 sometimes makes itself the default boot choice even when Linux was selected as the default previously. Somehow "accidental" boot order resets always mysteriously favor Windows...

That's nothing to do with your firmware, it's caused by a Windows update rewriting the MBR because it assumes it's always the only OS.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2018-12-22 17:43:23

thorstenhirsch
Member
Registered: 2005-08-03
Posts: 102

Re: BIOS update resets UEFI boot list (efivars)

Thank you guys for your answers. So I opened a ticket at Gigabyte's support. At least they see that there's some kind of demand for e.g. a checkbox that says "[ x ] preserve boot configuration" (like my router provides for its firmware updates).

Offline

#9 2018-12-22 18:21:11

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: BIOS update resets UEFI boot list (efivars)

If you're willing to build your own kernel you can embed your custom boot settings as the default options. If you then save it as $esp/EFI/BOOT/BOOTX64.EFI it will automagically boot even if your efivars are empty (snigger).


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB