October 21, 2016

OpenBSD: Follow -current

Remeber: This is an unofficial guide

Read this for the real thing. This is just meant as a reminder for myself.

Locally, without a USB drive

Check a mirror to see whether bsd.rd has changed (i.e. the timestamp is more recent than last time)
If it is, then I download the files to a directory such as /upgrade :

ftp -ia ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/`uname -m`/{index.txt,*tgz,bsd*,INS*}

Then copy bsd.rd to /

# cp bsd.rd /

Reboot and the prompt, I choose bsd.rd
Run upgrade and when getting to

Location of sets? (cd disk ftp http or 'done') [cd]

choose disk, give /mnt/upgrade as path and complete the upgrade in the usual way


# cd /mnt/upgrade
# sysmerge -s etc53.tgz -x xetc53.tgz

(this usually shows nothing, as I am *only* modifying /etc/pkg.config and /etc/rc.conf.local)

Update the packages:

# pkg_add -vu

With a USB drive

Download install.fs and SHA256.sig from -current (change install60.fs to current number, which is the one used in -stable)

wget -c http://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/install60.fs
wget -c http://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/SHA256.sig

Verify the downloaded files

$ signify -Cp /etc/signify -Cp /etc/signify/openbsd-60-base.pub -x SHA256.sig install60.fs

Create a usb installer

$ doas dd if=install.fs of=/dev/rsd2c bs=1m

After it successfully created the usb, copy the SHA256.sig to it

$ doas mount .dev.sd2a /mnt
$ doas cp SHA256.sig /mnt/6.0/amd64/

Then boot from that drive and run (U)pgrade, and then

# pkg_add -vu