You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.1 KiB
99 lines
2.1 KiB
+++
|
|
# vim: ft=markdown
|
|
title = 'OpenBSD-current'
|
|
summary = 'Keeping up to date with OpenBSD-current. Some quick notes.'
|
|
date = '2023-08-11T19:47:56+0000'
|
|
lastmod = '2023-08-12T15:22:33+0000'
|
|
categories = [ 'amateur-radio', 'computerstuff' ]
|
|
tags = [ 'openbsd' ]
|
|
|
|
# showBreadcrumbs = true
|
|
# showDate = false
|
|
# showReadingTime = false
|
|
# showWordCount = false
|
|
# showPagination = false
|
|
|
|
# feed_exclude = true
|
|
# site_exclude = true
|
|
|
|
draft = true
|
|
|
|
+++
|
|
|
|
[Initially]({{< ref "2023-07-29-going-back-from-openbsd-snapshot/index.md" >}}) I
|
|
wanted to not look at OpenBSD-current again but I did it again.
|
|
|
|
All went good this time and I could compile everything except the
|
|
ports. I'm still looking to find a good solution to update all
|
|
the packages in one run.
|
|
|
|
I'm still studying ports(7) and going to learn about bulk(8) and dpb(1).
|
|
|
|
## What went wrong the last time
|
|
|
|
I have no clue. The last time I had problems with the recent snapshot,
|
|
when the packages could not get updated properly. This time they updated
|
|
just fine. So maybe this was only an issue with that particular snapshot
|
|
back then. Maybe, <abbr title="I don't know">IDK</abbr>.
|
|
|
|
## Fetch the actual sources
|
|
|
|
The user is member of **wsrc**.
|
|
|
|
```console
|
|
$ cd /usr/src
|
|
$ cvs -q up -Pd -A
|
|
```
|
|
|
|
Initially we fetched the source with
|
|
|
|
```console
|
|
$ cd /usr
|
|
$ cvs -qd anoncvs@ftp.hostserver.de:/cvs checkout -P src
|
|
```
|
|
|
|
Same with `xenocara` and `ports`.
|
|
|
|
## Create the kernel
|
|
|
|
```console
|
|
$ cd /sys/arch/$(machine)/compile/GENERIC.MP
|
|
$ doas make obj
|
|
$ doas make config
|
|
$ doas make && make install
|
|
```
|
|
|
|
Is this really needed done as root (except install)?
|
|
Current kernel gets copied to /obsd and new kernel is /bsd.
|
|
|
|
Reboot with the new kernel.
|
|
|
|
## Build base system
|
|
|
|
```console
|
|
$ cd /usr/src
|
|
$ doas make obj && doas make build
|
|
```
|
|
|
|
```console
|
|
$ doas sysmerge
|
|
$ cd /dev && doas ./MAKEDEV all
|
|
```
|
|
|
|
This took on my Lenovo X1 Carbon Gen7 <mark>up to 11 hours</mark>.
|
|
|
|
## Build and install Xenocara (X)
|
|
|
|
```console
|
|
$ cd /src/xenocara
|
|
doas make bootstrap
|
|
doas make obj
|
|
doas make build
|
|
```
|
|
|
|
Building Xenocara took on my laptop (see above) <mark>around 1.5 hours</mark>.
|
|
|
|
## Reboot
|
|
|
|
|