FreeBSD-releases need to be upgraded regularly as there is just a 3 month window for upgrading. In this case we will first upgrade the base system, then update everything, and afterwards we will upgrade the jails using BastilleBSDs capabilities.
freebsd-update -r 14.4-RELEASE upgrade
freebsd-update install
reboot
/root/werzel_tools/restart.shThis process needs up to two (2!) reboots and a lot of time, but you'll have the most recent FreeBSD version on your machine.
/usr/sbin/freebsd-update install
env ASSUME_ALWAYS_YES=YES pkg-static bootstrap
pkg-static update
pkg-static upgrade
/usr/sbin/freebsd-update fetch
/usr/sbin/freebsd-update install
reboot
/root/werzel_tools/restart.sh
freebsd-version
pkg update
pkg upgrade -f
pkg autoremovecd /usr/src
rm -rf /usr/src/*
rm -rf /usr/src/.*
git clone --branch releng/14.4 https://git.FreeBSD.org/src.git /usr/srcbastille bootstrap 14.4-RELEASE update
bastille update 14.4-RELEASEList all jails and upgrade each jail serially:
bastille list | awk '{print $2}' | while read -r jailname; do bastille stop $jailname; bastille upgrade $jailname 14.4-RELEASE; bastille start $jailname; doneRestart all jails
bastille list | awk '{print $2}' | while read -r jailname; do bastille restart $jailname; doneIf all runs smoothly, destroy the old release
bastille destroy 14.3-RELEASEAfterwards an update of the system and all jails is recommended.
Please view details at https://bastille.readthedocs.io/en/latest/chapters/upgrading.html for details!
bastille bootstrap 15.0-RELEASE update
bastille update 15.0-RELEASE
#bastille etcupdate bootstrap 15.0-RELEASEList all jails and upgrade each jail serially:
bastille list | awk '{print $2}' | while read -r jailname; do bastille upgrade $jailname; doneStop all jails at once
bastille stop ALLEdit all FSTAB-entries to the new version using the following command and replacing the release of base jail
bastille edit TARGET fstabRestart all jails
bastille start ALLIf all runs smoothly, destroy the old release
bastille destroy 14.1-RELEASE