Thank you for visiting!
My little window on internet allowing me to share several of my passions
Categories:
- OpenBSD
- Nas
- FreeBSD
- DragonflyBSD
- fapws
- Alpine Linux
- OpenBSD
- Openbox
- Desktop
- Security
- nvim
- yabitrot
- nmctl
- Tint2
- Firewall
- vdcron
- VPN
- Project Management
- Hifi
- Alarm
Most Popular Articles:
Last Articles:
Improved sysupgrade for OpenBSD
Posted on 2020-10-21 21:31:00 from Vincent in OpenBSD
For the release of OpenBSD 6.8 I've slightly adapted my systupgrade utility.
Introduction
As stated in my previous blog, I do not want to use the standard sysupgrade because it install all possible sets.
My adapted version of systupgrade allows you to choose which sets you want to install. For example, I do not want to have games, xorg and friends on my servers.
In this post I share a slightly adapted version of sysupgrade.
Code
My adapted sysupgrade utility is based on the one provided in OpenBSD 6.8.
You can download it here
Before executing it, do not forget to perform a chmod:
chmod +x sysupgrade.sh
Or you can execute it with ksh
ksh sysuprade.sh
For sure you have to be root for that ;-)
Configuration.
The configuration aspects remains as there was:
1)
Create a configuration file call /etc/sysupgrade_sets
For example:
-x* to remove all X related sets.
+xbase* to add xbase related sets.
-ga* to remove games.
It's exactly the informations you type when you use the interactive install procedure.
2)
Configure the /etc/installurl file by listing your preferred source website.
this is an optional configuration item.
Without it, sysupgrade will select https://cdn.openbsd.org/pub/OpenBSD which is perfect is most cases.
Execution
You just have to trigger this script like described here above.
It will download the required files and sets you have requested via /etc/sysupgrade_sets
Like for the official sysupgrade, those files will be stored in /home/_sysupgrade.
Then, my script will adapt a little bit the famous /auto_upgrade.conf file. Those adaptations will take into account the fact that you do not want all sets.
Then reboot your machine, and that's it.
Installation finalisation
Like described on the OpenBSD guides, you still have 2 steps to finalize the upgrade to OpenBSD 6.8
sysmerge
pkg_add -u
I let you read the OpenBSD documentation for those steps.
Conclusion
Very few adaptations offer you more flexibility with the sysupgrade utility.
Have fun with it ;-)
1. From cordel on Tue Jul 18 14:17:05 2023
Off topic: How can I exclude firefox from been updated by OpenBSD?
2. From Vincent on Tue Jul 18 22:02:33 2023
No ideas 🙁