OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: klosz007 on February 24, 2025, 11:45:23 PM

Title: Loader needs to be updated
Post by: klosz007 on February 24, 2025, 11:45:23 PM
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.
Title: Re: Loader needs to be updated
Post by: franco on February 24, 2025, 11:58:29 PM
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
Title: Re: Loader needs to be updated
Post by: meyergru on February 25, 2025, 12:02:39 AM
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 (https://forum.opnsense.org/index.php?msg=206737). It is vital to update prior to upgrading your ZFS boot pool.
Title: Re: Loader needs to be updated
Post by: klosz007 on February 25, 2025, 12:19:10 AM
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.