Loader needs to be updated

Started by klosz007, February 24, 2025, 11:45:23 PM

Previous topic - Next topic
Hi,

If you noticed this warning on bootloader screen then it's a known and unimportant bug in FreeBSD 14. It does not upgrade EFI bootloader in EFI partition.
I just noticed it now on OPNsense and I have been searching for quite some time how to fix it on my FreeBSD 14.x installs that were upgraded from 13.x.

Fix is easy from shell:
cp /boot/loader.efi /boot/efi/efi/freebsd/loader.efi
cp /boot/loader.efi /boot/efi/efi/boot/bootx64.efi

+ reboot and then it's gone.

Note that /boot/efi is not mounted on older installs as /etc/fstab didn't have it historically. I don't remember which version first had it.


Thanks,
Franco

That fix also works for UEFI only. We discussed the underlying problem a while ago with the full instructions for BIOS boot as well here. It is vital to update prior to upgrading your ZFS boot pool.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 770 up, Bufferbloat A

True. It's for EFI+UFS with /boot/efi mounted only.
That is how all my other FreeBSD installs (non-OPNsense) are configured so fix is directly applicable to OPNsense in exactly such config.
Sorry for not mentioning that before.

BIOS installs may require different fix.
Underlying problem is still the same - FreeBSD 14.x does not update bootloader even though a newer version is available in /boot.
For UFS it's rather cosmetic problem. I was not aware it may impact ZFS installs when pool gets upgraded.