Steffen's Knowledge Base

Created at: 2019-09-23 15:47:00
Last modified at: 2024-08-08 23:19:22
Author: Steffen Rick

OS upgrade

Table of contents (autogenerated)
Disable the start of the firewall
head -1 /etc/rc.conf.local
ipfilter_enable="NO"               # Start ipf firewall
	
Update src
cd /mypool/compressed
sudo git clone -b releng/13.2 --depth 1 https://git.freebsd.org/src.git src_13_2_RELENG-2023-06-23
cd /usr
sudo mv src src.old
sudo ln -s /mypool/compressed/src_13_2_RELENG-2023-06-23 src
	
Build kernel and userland
[root@gefjun /usr/src]# cat /root/kernel_install.txt
rm -rf /usr/obj/*
make -j7 buildworld && make -j7 buildkernel KERNCONF=TITUS
make installkernel KERNCONF=TITUS INSTKERNNAME=TITUS20240807
(mergemaster -p)
etcupdate -p
make installworld
(mergemaster -Fi)
etcupdate -B
make -DBATCH_DELETE_OLD_FILES delete-old
make -DBATCH_DELETE_OLD_FILES delete-old-libs
	
Update the boot loader to use the right kernel file and modules
head -1 /boot/loader.conf
kernel=TITUS20240807
	
Update any jails that might exist
make installworld DESTDIR=/path-to/jail
yes | make delete-old DESTDIR=/path-to/jail
yes | make delete-old-libs DESTDIR=/path-to/jail
(mergemaster -Fi -D /path-to/jail)
etcupdate -B -D /path-to/jail