OpenBSD 6.8
OpenBSD 6.8 released
OpenBSD has two new releases every year. historically, on 1. Mai and 1. November. With a few small execptions in the past Check Wikipedia
so, then latest OS appeared today: OpenBSD 6.8
Perform a Full Upgrade (incl. X Stuff)
sysupgrade -r
Run the Script (on your own risk !)
doas su -
mkdir /root/bin
ftp -o /root/bin/upgrade_to_68.sh https://blog.stoege.net/scripts/upgrade_to_68.sh
chmod 740 /root/bin/upgrade_to_68.sh
# /root/bin/upgrade_to_68.sh
# *** reboot ***
# /root/bin/upgrade_to_68.sh
# rm /root/bin/upgrade_to_68.sh
or use some custom Script (just Xbase and not other X Stuff)
doas su -
mkdir /root/bin
cat << 'EOF' > /root/bin/upgrade_to_68.sh
#!/bin/sh
prepare () {
echo "let's upgrade to 6.8 ..."
rm -f /usr/lib/libperl.a
rm /usr/X11R6/lib/libxkbui.*
rm /usr/X11R6/lib/pkgconfig/xkbui.pc
rm /usr/X11R6/include/X11/extensions/XKBui.h
}
download() {
local _response=$(sysupgrade -n)
if [[ $_response == *reboot ]]; then
echo "\nInstalled! Let's reboot ...\n"
rm /home/_sysupgrade/{comp,xf,xs}*
else
echo "Nothing todo ..."
fi
}
install() {
reboot
}
postwork() {
echo "let's do some postwork after upgrade to 6.8 ..."
cd /dev
./MAKEDEV all
_boot=$(mount |awk -F'[/ ]' '/ on \/ / {print $3}')
installboot ${_boot%?}
sysmerge
fw_update
syspatch
pkg_add -Vu
pkg_delete -a
/usr/libexec/locate.updatedb &
}
# Main
local _ver=$(uname -r)
if [ "$_ver" == "6.7" ]; then
prepare
download
install
elif [ "$_ver" == "6.8" ]; then
postwork
fi
exit 0
EOF
chmod 740 /root/bin/upgrade_to_68.sh
# /root/bin/upgrade_to_68.sh
# *** reboot ***
# /root/bin/upgrade_to_68.sh
# rm /root/bin/upgrade_to_68.sh
Checks
you should do a few checks afterwards: