Hi all, I'm not trusting my judgement today. With help from you I hope to regain it
I upgraded my system zpool and need to update the boot code.
Zpool upgrade
System zpool looks like this:
..and drives are partitioned like this:
System is booting using UEFI
Question
Can I update the UEFI boot code like outlined below?
Thank you.
edit:
I removed GELI from the post title. It doesn't have any relevance to the boot process, as the efi partition is unencrypted.

Zpool upgrade
Code:
# zpool upgrade system
This system supports ZFS pool feature flags.
Enabled the following features on 'system':
allocation_classes
If you boot from pool 'system', don't forget to update boot code.
Assuming you use GPT partitioning and da0 is your boot disk
the following command will do it:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
System zpool looks like this:
Code:
# zpool status system
pool: system
state: ONLINE
scan: scrub repaired 0 in 0 days 00:11:14 with 0 errors on Sun Mar 7 22:34:36 2021
config:
NAME STATE READ WRITE CKSUM
system ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada1p3.eli ONLINE 0 0 0
ada0p3.eli ONLINE 0 0 0
..and drives are partitioned like this:
Code:
# gpart show
=> 40 488397088 ada0 GPT (233G)
40 409600 1 efi (200M)
409640 2008 - free - (1.0M)
411648 4194304 2 freebsd-swap (2.0G)
4605952 483790848 3 freebsd-zfs (231G)
488396800 328 - free - (164K)
=> 40 488397088 ada1 GPT (233G)
40 409600 1 efi (200M)
409640 2008 - free - (1.0M)
411648 4194304 2 freebsd-swap (2.0G)
4605952 483790848 3 freebsd-zfs (231G)
488396800 328 - free - (164K)
System is booting using UEFI
Code:
# sysctl machdep.bootmethod
machdep.bootmethod: UEFI
Question
Can I update the UEFI boot code like outlined below?
Code:
gpart bootcode -p /boot/boot1.efi -i 1 ada0
gpart bootcode -p /boot/boot1.efi -i 1 ada1
Thank you.
edit:
I removed GELI from the post title. It doesn't have any relevance to the boot process, as the efi partition is unencrypted.