I wonder if, using UEFI and ZFS, a USB memstick could be created that can dual-boot across different architectures (arm64 and amd64). Effectively, use #ZFS boot environments in #FreeBSD / #HardenedBSD to support multi-architecture in this way.

#UEFI bootloaders are differently named EXE files, what happens if you put both? I have no #arm to try.

Follow

@saper @lattera yes. The uefi firmware will only look at its bootloader, so that will work if you can figure out how to get that bootloader to pick the right executable to chain to

@david @lattera looks like /stand/boot/efi/boot1/boot1.c calls ZFS and UFS modules and tries to figure out anything that has second stage efi loader on it. Some small change to try_boot() logic to try multiple images if the first one fails might do the trick!

@saper @david Yeah. There'd likely be a few things to change, including the bootfs zpool property.

This type of project would be perfect for an intern. :)

Sign in to participate in the conversation
Cross Family's Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!