Re: Updating EFI boot loader results in boot hangup

From: Simon J. Gerraty <sjg_at_juniper.net>
Date: Thu, 18 Aug 2022 06:18:57 UTC
Warner Losh <imp@bsdimp.com> wrote:
> I think I broke it with my latest updates. I don't have a good ZFS testing setup
> so I'm spending a little time enhancing the bootable image generator to have
> one that I can easily test boot with qemu.

FWIW bhyve is *excellent* for mucking about with EFI and loader in general.

I did all the UEFI support for Junos using bhyve (initially so I could
test LOADER_VERIEXEC), and I regurlarly use it to test various install
processes - pxe boot and net install, usb install, etc.

I build loader.efi from a branch off main, everyting else is from
stable/12 at present.

The combination of makefs, mkimg and bhyve - make hacking the low level
boot bits much safer.

Byhve is quick too - my Junos VM's take about 40-50s from start to login
prompt.

--sjg