Failed to load '/boot/loader.efi'

Grzegorz Junka list1 at
Sat Mar 2 21:27:37 UTC 2019


I am trying to configure UEFI loader to boot FreeBSD 12. The UEFI shell 
prints the following:

>> 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,0x3)/Pci(0x0,0x2)/Pci(0x4,0x0)/Pci(0x0,0x0)/NVMe(0x1,8D-7F-B1-71-55-38-25-00)/HD(1,GPT,F4EC62C3-B000-4A60-AAA6-7079751A497D,0x800,0x64000)
   BootCurrent: 0003
   BootOrder: 0000 0005 0006 0003[*]
   Probing 12 block devices......+...*.... done
     ZFS found the following pools: tank7
     UFS found no partitions
Failed to load '/boot/loader.efi'
panic: No bootable partions found!

I can import the ZFS pool fine when booting a memstick livefs. Why 
loader.efi isn't importing it?

efibootmgr -v gives the following

BootCurrent: 0005
Timeout : 5 seconds.
BootOrder: 0000, 0005, 0006, 0003
   Boot0* Windows Boot Manager 
* Boot5* UEFI OS 
nvd1p1:/EFI/BOOT/BOOTX64.EFI (null)
   Boot6* Hard Drive BBS(HD,,0x0)
   Boot3 UEFI: Built-in EFI Shell 

I've manually created /EFI/BOOT/BOOTx64.EFI by copying /boot/boot1.efi 
from the livefs. The content of /EFI is just one file:


Can I somehow install the /boot/boot1.efifat manually to try to make it 
working? I am installing FreeBSD 12 by partitioning disk manually so 
bsdsysinstall doesn't run, and it seems there were some changes around 
the EFI partition recently, e.g. support for /efi/freebsd/loader.efi.



More information about the freebsd-questions mailing list