So I did an upgrade in VM, from 12.1 to 12.2. Then I did the zfs upgrade as you did. The expected bootloader message was shown. I did nothing, rebooted the VM and I was able to boot. In other words I was not able to reproduce this.
But when I look on the sector0 on my disk:
I truly see no MBR boot code. You may have pushed some when you were executing
Once you're booted in 12.2 FreeBSD (while it may work to have different versions stick to the version you're trying to boot) try to recreate the EFI partition back (as you were trying to do before).
But when I look on the sector0 on my disk:
Code:
root@fbsd:~ # hd -n 512 /dev/da0
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001c0 02 00 ee ff ff ff 01 00 00 00 ff ff 7f 02 00 00 |................|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
root@fbsd:~ #
gpart bootcode
. This could potentially confuse BIOS that has legacy fallback.Once you're booted in 12.2 FreeBSD (while it may work to have different versions stick to the version you're trying to boot) try to recreate the EFI partition back (as you were trying to do before).
Code:
newfs_msdos /dev/nvd0p1
mkdir /newefi /curefi
mount -t msdosfs /dev/da0p1 /newefi
mdconfig -a -t vnode -f /boot/boot1.efifat
mount -o ro -t msdosfs /dev/md0 /curefi
cp -rp /curefi/* /newefi/
mdconfig -d -u 0
reboot