From 89440e25443cc96153e6243d6e6e2b7ec683dd05 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Fri, 11 Aug 2023 21:47:56 +0200 Subject: [PATCH] new post (draft; openbsd-current) --- .../posts/2023-08-10-openbsd-current/index.md | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 content/posts/2023-08-10-openbsd-current/index.md diff --git a/content/posts/2023-08-10-openbsd-current/index.md b/content/posts/2023-08-10-openbsd-current/index.md new file mode 100644 index 0000000..34af31b --- /dev/null +++ b/content/posts/2023-08-10-openbsd-current/index.md @@ -0,0 +1,92 @@ ++++ +# vim: ft=markdown +title = 'OpenBSD-current' +summary = 'Keeping up to date with OpenBSD-current. Some quick notes.' +date = '2023-08-10T05:44:58+02:00' +lastmod = '2023-08-11T19:47:56+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 (link to old article back from opsd current) 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. + +## 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, IDK. + +## 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 +``` + +## Build and install Xenocara (X) + +```console +$ cd /src/xenocara +doas make bootstrap +doas make obj +doas make build +``` + +## Reboot + +