CI workers spring
and summer
run FreeBSD and need to be updated.
Check the current version of FreeBSD which we have with uname -r
.
FreeBSD summer 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64
Run freebsd-update fetch
to download the latest versions of the system components, particularly the freebsd-update
utility. It even reported that it really is time to upgrade!
# freebsd-update fetch
...
WARNING: FreeBSD 14.1-RELEASE-p5 is approaching its End-of-Life date.
It is strongly recommended that you upgrade to a newer
release within the next 5 days.
Install these updates.
freebsd-update install
Now use freebsd-update
to fetch the 14.2-RELEASE and install it.
# freebsd-update upgrade -r 14.2-RELEASE
...
# freebsd-update install
src component not installed, skipped
Installing updates...
Kernel updates have been installed. Please reboot and run
'freebsd-update [options] install' again to finish installing updates.
Reboot the system using reboot
and then finish installing updates.
# freebsd-update install
src component not installed, skipped
Installing updates...
Restarting sshd after upgrade
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 707.
Performing sanity check on sshd configuration.
Starting sshd.
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
Scanning /usr/local/share/certs for certificates...
done.
Now use pkg
to upgrade any applications.
# pkg upgrade
Updating FreeBSD repository catalogue...
Fetching data.pkg: 100% 7 MiB 7.5MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 35885 packages processed.
All repositories are up to date.
Checking for upgrades (28 candidates): 100%
Processing candidates (28 candidates): 100%
The following 28 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
curl: 8.10.1 -> 8.11.1_1
...
xxd: 9.1.0764 -> 9.1.1199
Number of packages to be upgraded: 28
The process will require 3 MiB more space.
77 MiB to be downloaded.
Proceed with this action? [y/N]: y
Finally, reboot the system and check uname -a
.
# uname -a
FreeBSD spring 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64
To update the the FreeBSD base images used by the CI services, I applied PR#13 to ocurrent/freebsd-infra.
This was followed up by PR#1007 on ocurrent/ocaml-ci and PR#427 to ocurrent/opam-repo-ci.