gpart show=> 40 351651808 ada0 GPT (168G) 40 532480 1 efi (260M) 532520 1024 2 freebsd-boot (512K) 533544 984 - free - (492K) 534528 16777216 3 freebsd-swap (8.0G) 17311744 334340096 4 freebsd-zfs (159G) 351651840 8 - free - (4.0K)
gpart backup /dev/ada0 | gpart restore -F /dev/ada1
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0
newfs_msdos /dev/ada0p1mount -t msdosfs /dev/ada0p1 /mntmkdir -p /mnt/efi/boot /mnt/efi/freebsdcp /boot/loader.efi /mnt/efi/boot/bootx64.eficp /boot/loader.efi /mnt/efi/freebsd/loader.efiumount /mnt
In my experience in Linux, if the contents of the EFI partition changed, I had to copy over the changes manually or set up a RAID over them.
The dd command is not optimal for this (in Linux) because it copies over the UUIDs, which creates a mess down the line.
Do the contents of the EFI partition not change?
Or is there some script which automates the process of syncing changes during an update?
Or does OPNsense not use UUIDs to identify disks?