Page MenuHomeFreeBSD

rootgen.sh: complete all profiles except GELI+MBR (not supported)
ClosedPublic

Authored by allanjude on Jun 16 2018, 6:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 12:41 PM
Unknown Object (File)
Oct 25 2024, 5:40 AM
Unknown Object (File)
Oct 9 2024, 9:33 AM
Unknown Object (File)
Sep 26 2024, 10:52 AM
Unknown Object (File)
Sep 25 2024, 11:55 PM
Unknown Object (File)
Sep 23 2024, 8:17 AM
Unknown Object (File)
Sep 22 2024, 11:29 PM
Unknown Object (File)
Sep 22 2024, 5:38 PM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17358
Build 17192: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jun 16 2018, 1:37 PM
This revision now requires review to proceed.Jun 16 2018, 5:48 PM
allanjude retitled this revision from rootgen.sh: first pass at GELI+GPT+LEGACY+ZFS boot profile to rootgen.sh: complete all profiles except GELI+MBR (not supported) and MBR+EFI/DUAL.Jun 16 2018, 9:33 PM

This update to rootgen.sh and install-boot.sh covers most all boot cases: amd64{geli,nogeli}-{gpt,mbr}-{ufs,zfs}-{legacy,uefi,both}

Results of the current version:

amd64-geli-gpt-ufs-both: legacy: works, uefi: no geli support
amd64-geli-gpt-ufs-legacy: works
amd64-geli-gpt-ufs-uefi: no geli support
amd64-geli-gpt-zfs-both: legacy: works, uefi: no geli support
amd64-geli-gpt-zfs-legacy: works
amd64-geli-gpt-zfs-uefi: no geli support
amd64-geli-mbr-ufs-both: no geli support
amd64-geli-mbr-ufs-legacy: no geli support
amd64-geli-mbr-ufs-uefi: no geli support
amd64-geli-mbr-zfs-both: no geli support
amd64-geli-mbr-zfs-legacy: no geli support
amd64-geli-mbr-zfs-uefi: no geli support
amd64-nogeli-gpt-ufs-both: legacy: works, uefi: qemu-fails
amd64-nogeli-gpt-ufs-legacy: works
amd64-nogeli-gpt-ufs-uefi: qemu-fails
amd64-nogeli-gpt-zfs-both: legacy: works, uefi: qemu-fails
amd64-nogeli-gpt-zfs-legacy: works
amd64-nogeli-gpt-zfs-uefi: qemu-fails
amd64-nogeli-mbr-ufs-both: not implemented
amd64-nogeli-mbr-ufs-legacy: works
amd64-nogeli-mbr-ufs-uefi: not implemented
amd64-nogeli-mbr-zfs-both: not implemented
amd64-nogeli-mbr-zfs-legacy: works
amd64-nogeli-mbr-zfs-uefi: not implemented

For some reason, qemu will not boot the UEFI images, it starts our UEFI loader and then reports:

>> FreeBSD EFI boot block
   Loader path: /boot/loader.efi

   Initializing modules: ZFS UFS
   Load Path: \EFI\BOOT\BOOTX64.EFI
   Load Device: PciRoot(0x0)/Pci(0x1,0x1)/Ata(0x0)/HD(1,GPT,1BB47135-71A6-11E8-B31D-00074334F670,0x28,0x640)
   BootCurrent: 0004
   BootOrder: 0000 0001 0002 0003 0004[*] 0005 0006 0007
   Probing 6 block devices......*.. done
    ZFS found the following pools: nogeli-gpt-zfs-uefi
    UFS found no partitions
    command args: -h -D -S115200

Failed to start image provided by ZFS (9)
panic: No bootable partitions found!

or

Failed to start image provided by UFS (9)
panic: No bootable partitions found!

However, all of the UEFI images generated do boot in bhyve with uefi-firmware/BHYVE_UEFI.fd

I still need to investigate how to make an MBR+UEFI image.

allanjude retitled this revision from rootgen.sh: complete all profiles except GELI+MBR (not supported) and MBR+EFI/DUAL to rootgen.sh: complete all profiles except GELI+MBR (not supported).Jun 17 2018, 5:52 AM

Update

amd64-geli-gpt-ufs-both: legacy: works, uefi: no geli support
amd64-geli-gpt-ufs-legacy: works
amd64-geli-gpt-ufs-uefi: no geli support
amd64-geli-gpt-zfs-both: legacy: works, uefi: no geli support
amd64-geli-gpt-zfs-legacy: works
amd64-geli-gpt-zfs-uefi: no geli support
amd64-geli-mbr-ufs-both: no geli support
amd64-geli-mbr-ufs-legacy: no geli support
amd64-geli-mbr-ufs-uefi: no geli support
amd64-geli-mbr-zfs-both: no geli support
amd64-geli-mbr-zfs-legacy: no geli support
amd64-geli-mbr-zfs-uefi: no geli support
amd64-nogeli-gpt-ufs-both: legacy: works, uefi: works
amd64-nogeli-gpt-ufs-legacy: works
amd64-nogeli-gpt-ufs-uefi: works
amd64-nogeli-gpt-zfs-both: legacy: works, uefi: works
amd64-nogeli-gpt-zfs-legacy: works
amd64-nogeli-gpt-zfs-uefi: works
amd64-nogeli-mbr-ufs-both: legacy: works, uefi: works
amd64-nogeli-mbr-ufs-legacy: works
amd64-nogeli-mbr-ufs-uefi: works
amd64-nogeli-mbr-zfs-both: legacy: works, uefi: works
amd64-nogeli-mbr-zfs-legacy: works
amd64-nogeli-mbr-zfs-uefi: works

This revision was not accepted when it landed; it landed in state Needs Review.Jun 17 2018, 5:55 AM
This revision was automatically updated to reflect the committed changes.