OpenBSD notes

Table of Contents

This is a living document, notes will be added as they appear.

1 Upgrading

OpenBSD usually upgrades rather cleanly. Find the upgrade instructions, read them, read them again.

https://www.openbsd.org/faq/upgrade66.html

It is recommended that you download the base system packages to the system you wish to upgrade. This may be done like so:

# mkdir -p /usr/rel/6.6
# cd /usr/rel/6.6
# wget -r -np -nH -R 'index.html*' -R '*.iso' -R 'install*.fs' -nH --cut-dirs=4 https://mirror.one.com/pub/OpenBSD/6.6/amd64/

This ensures that the base system is available to the installer without having to worry about networking, which is handy as OpenBSD, typically acting as a firewall, often has intricate and complex network setup.

When booting the installer, at the boot> prompt, enter something akin to:

boot> boot sd2a:/bsd.rd

Note that sd2a is the root partition (see pre-flight checklist below), and bsd.rd is copied to / from the newest release in /usr/rel.

1.1 Pre-flight checklist

  • Know where the system is installed. E.g.:
# df /
Filesystem  512-blocks      Used     Avail Capacity  Mounted on
/dev/sd2a     41276476   3643536  35569120     9%    /

Here the root fs is sd2a.

Author: rkv

Created: 2020-06-18 Thu 16:06

Validate