Writing /boot/boot1.efifat fails

Started by Dunuin, February 10, 2021, 05:39:06 AM

Previous topic - Next topic
February 10, 2021, 05:39:06 AM Last Edit: February 10, 2021, 05:51:48 PM by Dunuin
Hi,

I'm trying to setup OPNsense on two servers so I can use HA.
Installation using grub on Proxmox worked but FreeNAS 11.3 only allows me to use UEFI and I always encouter a error where the installer complains that the command "/bin/dd if=/boot/boot1.efifat of=/dev/vtbd0p1" failed with exitcode 1. I can press the button to skip that file and all other files are written fine. But after the installation finishes EFI cant boot. I think that is because that one bootloader file coundn't be saved to my zvol.

Can I fix that somehow?

Edit:
I used the "OPNsense-21.1-OpenSSL-dvd-amd64.iso" image to install to a bhyve VM on FreeNAS 11.3U4.1. That VM is set to UEFI with 4GB of RAM and 3 cores. The "disk device" is set to use my zvol with virtio and 4K blocksize. I created the zvol with 32GiB size, sparse enabled and 64K blocksize.
I also tried it with AHCI instead of virtio for the "disk device" but with the same problem.



We found a solution:

1.) Booting the Live iso and login as root:opnsense
2.) select option "8" to open shell
3.) type this in to copy the uefi bootloader from the live iso to the disk:
newfs_msdos /dev/vtbd0p1
mount_msdosfs /dev/vtbd0p1 /mnt
mkdir -p /mnt/efi/boot
cp /boot/boot1.efi /mnt/efi/boot/bootx64.efi
umount /mnt