svn commit: r351831 - in head: . stand/efi/boot1 stand/efi/gptboot tools/build/mk

Niclas Zeising zeising+freebsd at daemonic.se
Thu Sep 5 08:42:05 UTC 2019


On 2019-09-05 07:57, Dimitry Andric wrote:
> On 4 Sep 2019, at 22:55, Rebecca Cran <bcran at freebsd.org> wrote:
>>
>> Author: bcran
>> Date: Wed Sep  4 20:55:48 2019
>> New Revision: 351831
>> URL: https://svnweb.freebsd.org/changeset/base/351831
>>
>> Log:
>>   The efifat files are no longer used: remove the code to build them
>>
>>   Reviewed by:	imp, tsoome, emaste
>>   Differential Revision:	https://reviews.freebsd.org/D20562
> 
> So what are now the instructions for updating an EFI partition, after a
> buildworld?  I used to find that efifat file quite handy, I could just
> use gpart -p to write it into the EFI partition... :-/
> 
> -Dimitry
> 

This is what I do:

mount -t msdosfs /dev/ada0p1 /mnt # (if that's the ESP, check with gpart 
list)
cp /boot/loader.efi /mnt/EFI/FreeBSD/loader.efi
umount /mnt

This works if proper EFI boot variables have been set up.  This can be 
done with, it's only needed the first time, or if they are somehow 
overwritten.

efibootmgr --create --activate --label FreeBSD --loader 
/dev/ada0p1:/EFI/FreeBSD/loader.efi

Once again, check that /dev/ada0p1 is the ESP.
You can check your efi boot variables with efibootmgr -v

Regards
-- 
Niclas


More information about the svn-src-head mailing list