687
edits
Changes
→Upgrade the packages
=== Upgrade the bootloader ===
We need to update the bootloader, otherwise the system [https://lwn.net/Articles/852586 will stop booting eventually] (but not immediately). I think this is only necessary after <code>zpool upgrade</code>, and <code>zpool upgrade</code> used to warn us about this, but apparently not anymore? (Maybe it's related to the switch to OpenZFS — unclear.) Presumably you can do this after booting into the new system, but before <code>zpool upgrade</code>.
==== BIOS ====
gpart bootcode -b /mnt/boot/pmbr -p /mnt/boot/gptzfsboot -i 1 da0
gpart bootcode -b /mnt/boot/pmbr -p /mnt/boot/gptzfsboot -i 1 da2
Of course, if you already booted into the new system, these become:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da2
==== EFI ====
pkg -c /mnt update
pkg -c /mnt upgrade
== Activate the new BE ==
* [https://www.freebsd.org/releases/13.0R/relnotes/ FreeBSD 13.0-RELEASE Release Notes]
* [https://www.freebsd.org/releases/13.0R/installation/ FreeBSD 13.0-RELEASE Installation Instructions]* [https://vermaden.wordpress.com/2021/02/23/upgrade-freebsd-with-zfs-boot-environments/ Upgrade FreeBSD with ZFS Boot Environments]* [https://www.freebsd.org/cgi/man.cgi?query=freebsd-update&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html (8) freebsd-update(8)]* [https://www.freebsd.org/cgi/man.cgi?query=geom&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html (8) geom(8)]* [https://www.freebsd.org/cgi/man.cgi?query=gpart&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html (8) gpart(8)]