NEW VIDEO - Breaking FreeBSD: How I fixed the bootcode!
https://youtu.be/6ElwE2bFAXM?si=HfRT7Lkk7e32If8m via @YouTube
NEW VIDEO - Breaking FreeBSD: How I fixed the bootcode!
https://youtu.be/6ElwE2bFAXM?si=HfRT7Lkk7e32If8m via @YouTube
Operation not permitted probably because the ESP-related mount was unnecessary (it already existed).
Check the default /etc/fstab
This 2021 commit might be the milestone first of a series of commits that simplified things:
https://github.com/freebsd/freebsd-src/commit/0b7472b3d8d2f1e90fade5236b44fd98d8e396c2
Per hier(7), the ESP will be mounted at /boot/efi. On UFS systems, any existing ESP will be reused and mounted there; otherwise, a new one will be made. On ZFS systems, space for an ESP is allocate...
@garyhtech The size of the old "/boot/efi/boot/bootx64.efi" was in excess (~646 kB) of replacement "boot1.efi" (~150 kB). Did that not concern you?
# On v14.3 system.
zsh
stat -f "%z %N" /boot/{boot?.efi,loader.efi} /boot/efi/efi/{boot/bootx64.efi,freebsd/loader.efi}
160768 /boot/boot1.efi
675328 /boot/loader.efi
674816 /boot/efi/efi/boot/bootx64.efi
674816 /boot/efi/efi/freebsd/loader.efi
(~500 B difference had me update ~year old boot loader as it was sticking out)