EFI boot with iPXE

From: Peter Blok <pblok_at_bsd4all.org>
Date: Thu, 07 Nov 2024 20:22:47 UTC
Hi,

I have tried to boot over iSCSI using PXE using the ports isboot-kmod. It worked after many tries, but it is not automatic yet.

At the loader.efi prompt I do:
set currdev=zfs:zroot/ROOT/default:
load /boot/kernel/kernel
load /boot/kernel/opensolaris.ko
load /boot/kernel/zfs.ko
load /boot/kernel/acpi_wmi.ko
load /boot/kernel/smbus.ko
load /boot/kernel/ichsmb.ko
load /boot/kernel/uhid.ko
load /boot/kernel/wmt.ko
load /boot/kernel/iscsi.ko
load /boot/modules/isboot.ko
boot

And it starts. There is no local storage so everything is really coming over the net.

Obviously it doesn’t read what is in loader.conf and I’m puzzled what the boot flow is once you have loader.efi loaded. I can put currdev in loader.env but it doesn’t set it although set qqq=something shows up when I type show, so I have the right file.

How can I boot without having to type the commands?

Peter