> On Thu, 4 Feb 2016 14:36+0100, Matthias Fechner wrote:
>>
>> is it true that currently the EFI loaded cannot boot a ZFS root?
>
> As of r294999, stable/10's boot1.efi and loader.efi is able to boot
> ZFS. Both boot1.efi and loader.efi takes the bootfs property into
> consideration... Maybe you should wait until the next stable/10
> snapshot is available...
The ZFS-compatible EFI loader is expected to be ready for 10.3-RELEASE,
which is scheduled for about six weeks from now.[1] It may be a bit more
or less time than that, depending on how things go, but the first beta
snapshot of 10.3 (which is cut from 10-STABLE) is set to be built
tomorrow. If you don't want to run a development branch, you won't have
much longer to wait. Though once that change happens, you'd have to back
up your data and reconfigure your boot scheme to make use of
ZFS-compatible UEFI booting.
[1]: https://www.freebsd.org/releases/10.3R/schedule.html
--
=================================================================
:: Brandon Wandersee ::
:: brandon....@gmail.com ::
==================================================================
I currently have a pure ZFS system with boot environments which I
currently boot using BIOS compatibility mode. Will I just be able to
switch to UEFI boot under 10.3? Is the EFI loader smart enough to find
boot environments for itself, or do we have to flag them in some fashion?
--
Moore's Law of Mad Science: Every eighteen months, the minimum IQ
necessary to destroy the world drops by one point.
here is a layout from one of my systems. You can see I trimmed the space
from swap
$ gpart show ada0
=> 34 117231341 ada0 GPT (56G)
34 1024 1 freebsd-boot (512K)
1058 6 - free - (3.0K)
1064 262144 2 efi (128M)
263208 3932154 4 freebsd-swap (1.9G)
4195362 113036013 3 freebsd-zfs (54G)
# find /boot/efi/
/boot/efi/
/boot/efi/efi
/boot/efi/efi/boot
/boot/efi/efi/boot/bootx64.efi
# gpart show
=> 34 117231341 ada0 GPT (56G)
34 1024 1 freebsd-boot (512K)
1058 6 - free - (3.0K)
1064 262144 2 efi (128M)
263208 3932154 4 freebsd-swap (1.9G)
4195362 113036013 3 freebsd-zfs (54G)
# mount -p | grep efi
/dev/ada0p2 /boot/efi msdosfs rw 0 0
> 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....@gmail.com ::
==================================================================
If 10.2 this maybe the problem as there are other bits in the bootstrap
process that need to be updated I think. Try building stable, and put it
into a new bootenv, activate it and reboot. Then from beastie select your
10.2 be and see if that works.
I'm booting a FreeBSD 10.2 kernel with a new boot1.efi bootloader.
Maybe there is really something in the kernel that is required.
> If 10.2 this maybe the problem as there are other bits in the bootstrap
> process that need to be updated I think. Try building stable, and put it
> into a new bootenv, activate it and reboot. Then from beastie select your
> 10.2 be and see if that works.
I tested it now with a completely fresh installed 10.3-beta2 image and
there it works.
So I will wait till 10.3 is available via freebsd-update to test it with
my setup.
The only difference I saw was that my efi partion has 128MB and the
standard efi partition the installer created 800KB.
Could this be a problem of disk-size (FAT12, FAT16, FAT32...)?
Gruß
Matthias
--
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook