Switch from legacy to UEFI boot??

Brandon J. Wandersee brandon.wandersee at gmail.com
Thu Feb 11 22:06:26 UTC 2016


Trond Endrestøl writes:

> On Wed, 10 Feb 2016 21:21+0100, Matthias Fechner wrote:
>
>> i just tested the loader.efi from base.txz from: 
>> ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/amd64/10.3-PRERELEASE/ 
>> it does not boot. It seems that the new version is there not 
>> included.
>
> Try the latest 10.3-BETA1 image. That one should be recent enough.
>
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/10.3-BETA1/
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3/
>
>> If I use beadm for my ZFS I expect that I have to manually edit the
>> loader.rc from the efi partition to load the correct environment or?
>
> I don't use any loader.rc on the ESP. Just boot1.efi renamed to 
> /EFI/BOOT/BOOTX64.EFI. boot1.efi reads the bootfs property from the 
> bootpool/rootpool, and navigates to the correct /boot directory to 
> find everything else.

Assuming your install is on disk ada0, and your ESP is the first
parition, you can just run:

$ dd if=/path/to/boot1.efifat of=/dev/ada0p1

You'll find boot1.efifat in /boot, relative to wherever you extracted
base.txz. As always, make sure your `dd` target is actually the one you
want before running.

-- 
=================================================================
   		      :: Brandon Wandersee ::
                  :: brandon.wandersee at gmail.com ::
==================================================================


More information about the freebsd-questions mailing list