You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bootupd would write the new bootloader in a new place (B), set BootNext to a new boot entry with this bootloader. And then on reboot would check that the boot succeeded and would do the reverse for the next update (use A).
changed the title [-]Would it be possible to do A/B updates using `BootNext` from https://github.com/rhboot/efibootmgr?[/-][+]Would it be possible to do A/B updates using `BootNext` from efibootmgr?[/+]on Mar 17, 2023
If this works, that would potentially let us enable boot loader updates by default (just like it is on dnf based Fedora) has the update itself would be safe.
This was recently discussed at Linux Plumbers Conference 2024 talk no more bootloader: please use the kernel instead (given by @marta-lewandowska, while the project is co-developed with @vathpela). The main concert raised by the audience was NVRAM durability - writing to BootNext on every update could wear down the flash storage, and thus brick the motherboard.
This is a valid concern, one that I've heard before elsewhere, only the last time it was about monitors potentially dying because of f.lux and Lunar.app. The Lunar.app developer disagrees with this, but I guess collecting more data (by conducting experiments on common hardware) would be great.
But even if motherboard chips were to die after the 100K writes like some theorise, that'd still give us space for 50K updates (2 operations: we set BootNext, the firmware unsets BootNext), which is a lot, even if someone updates kernel many times a day (kernel developers). We should be careful not to perform more writes than we need - e.g. rather than creating/deleting the boot entries on every update, we only change BootNext. How? We could create current and next entries on first installation, and then just one-time activate the next entry by setting the BootNext on update:
It's too bad UEFI doesn't let you point at a directory instead of a specific executable. It'd be great if you could just drop UKIs into a directory on the ESP and then the firmware would iterate over them in version-sorted order until one succeeded.
changed the title [-]Would it be possible to do A/B updates using `BootNext` from efibootmgr?[/-][+]Do A/B updates using `BootNext` via efibootmgr[/+]on Apr 2, 2026
Activity
[-]Would it be possible to do A/B updates using `BootNext` from https://github.com/rhboot/efibootmgr?[/-][+]Would it be possible to do A/B updates using `BootNext` from efibootmgr?[/+]travier commentedon Mar 17, 2023
If this works, that would potentially let us enable boot loader updates by default (just like it is on dnf based Fedora) has the update itself would be safe.
travier commentedon Mar 17, 2023
Related to rhboot/shim#502
martinezjavier commentedon Mar 30, 2023
#454 is something that could be complementary to this and make the update mechanism safer as well.
pzmarzly commentedon Oct 10, 2024
This was recently discussed at Linux Plumbers Conference 2024 talk no more bootloader: please use the kernel instead (given by @marta-lewandowska, while the project is co-developed with @vathpela). The main concert raised by the audience was NVRAM durability - writing to BootNext on every update could wear down the flash storage, and thus brick the motherboard.
This is a valid concern, one that I've heard before elsewhere, only the last time it was about monitors potentially dying because of f.lux and Lunar.app. The Lunar.app developer disagrees with this, but I guess collecting more data (by conducting experiments on common hardware) would be great.
But even if motherboard chips were to die after the 100K writes like some theorise, that'd still give us space for 50K updates (2 operations: we set BootNext, the firmware unsets BootNext), which is a lot, even if someone updates kernel many times a day (kernel developers). We should be careful not to perform more writes than we need - e.g. rather than creating/deleting the boot entries on every update, we only change BootNext. How? We could create
currentandnextentries on first installation, and then just one-time activate thenextentry by setting the BootNext on update:Does that make sense?
gregory-lee-bartholomew commentedon Jan 11, 2025
It's too bad UEFI doesn't let you point at a directory instead of a specific executable. It'd be great if you could just drop UKIs into a directory on the ESP and then the firmware would iterate over them in version-sorted order until one succeeded.
[-]Would it be possible to do A/B updates using `BootNext` from efibootmgr?[/-][+]Do A/B updates using `BootNext` via efibootmgr[/+]