I am stuck on a new FreeBSD 15.1 installation on a new system and none of the hints in this forum or elsewhere have brought me closer to a resolution. When booting the system in EFI mode (CSM legacy mode is disabled), the ESP loader is giving me this:
The system has one NVMe SSD for the system installation and four SATA HDDs. Only the NVMe drive has a ESP, i.e. "currdev disk5p1:" clearly is the correct ESP. The system drive has the following partitions:
Clearly the ESP loader from p1 is being loaded and then it fails to find p2 or the Lua loader on p2. The rootdev setting is obviously picked up and I tried all sorts of combinations from disk1p1: to disk5p5: but disk5p2: should be correct AFAICT.
When I mount p2, I can definitely see the loader.lua file, which is a valid text file that contains a Lua script:
I am wondering one thing now however, because the root of the filesystem on p2 would be /lua/loader.lua, not /boot/lua/loader.lua as it says in the error in the boot console. Did I accidentally screw up the directory levels in p2 when I manually partitioned and created the file systems? Any other hints how to debug this or what I could be looking into before I give up and wipe it all and start over from scratch?
Code:
Reading loader env vars from /efi/freebsd/loader.env
Setting currdev to disk5p1:
FreeBSD/amd64 EFI loader, Revision 3.0
Command line arguments: rootdev=disk5p2:
Image base: 0xb5409000
EFI version: 2.70
EFI Firmware: American Megatrends (rev 5.17)
Console: efi (0)
Load Path: \EFI\FREEBSD\LOADER.EFI
Load Device: PciRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00)/HD(1,GPT,8F58E360-8B7B-11F1-BD3D-9C6B009FDCB5,0x28,0x82000)
BootCurrent: 0000
BootOrder: 0000[*] 0002
Setting currdev to configured rootdev disk5p2:
ERROR: cannot open /boot/lua/loader.lua: no such file or directory.
The system has one NVMe SSD for the system installation and four SATA HDDs. Only the NVMe drive has a ESP, i.e. "currdev disk5p1:" clearly is the correct ESP. The system drive has the following partitions:
- p1: ESP, 260 MB
- p2: UFS /boot, unencrypted
- p3: Swap
- p4: ZFS root, GELI encrypted
- p5: ZFS L2ARC
Clearly the ESP loader from p1 is being loaded and then it fails to find p2 or the Lua loader on p2. The rootdev setting is obviously picked up and I tried all sorts of combinations from disk1p1: to disk5p5: but disk5p2: should be correct AFAICT.
When I mount p2, I can definitely see the loader.lua file, which is a valid text file that contains a Lua script:
Code:
-r--r--r-- 1 root wheel 2.3K Jun 12 00:37 /tmp/boot/lua/loader.lua
I am wondering one thing now however, because the root of the filesystem on p2 would be /lua/loader.lua, not /boot/lua/loader.lua as it says in the error in the boot console. Did I accidentally screw up the directory levels in p2 when I manually partitioned and created the file systems? Any other hints how to debug this or what I could be looking into before I give up and wipe it all and start over from scratch?