All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
dch's Avatar

dch / neuromancer upgrade

0 likes
0 forks
4 files
Last active 3 days ago

this seems to work ok, but fails on reboot:

  • switch to /bin/sh first
  • pkg-static upgrade -r FreeBSD (now they're upgraded)
  • pkg-static upgrade -r pkg-base
  • check tools listed above
  • check password file specifically
Starting syslogd.
dch's Avatar

dch / plan.md

0 likes
0 forks
5 files
Last active 3 days ago

updating 15.0-CURRENT from ~ 3 weeks ago to 15.0-ALPHA1

NB I built my own pkgbase set, based off stable/15 @ 0b3d82579a01db4c5d874cda1ac468bb8f26c109

The overall plan is:

  1. upgrade only the GENERIC kernel package from my pkgbase set
  2. reboot
  3. upgrade all the remaining base system packages from my pkgbase set
  4. update the EFI boot loader from the just-installed FreeBSD-bootloader
dch's Avatar

dch / sideloading-alpha3.md

0 likes
0 forks
1 files
Last active 3 days ago

sideloading with pkgbase

  • stash a list of packages
  • sync base packages
  • sync ports packages
# pkg prime-origins | sort | uniq > /etc/packages.lst
# pkg fetch -yr FreeBSD-base -do /var/tmp/base -g FreeBSD-\*
# pkg fetch -yr FreeBSD -do /var/tmp/pkg $(grep -v \# /etc/packages.lst)
dch's Avatar

dch / with-toolchain.diff

0 likes
0 forks
2 files
Last active 3 days ago
1 1d0
2 < FreeBSD-acct
3 8d6
4 < FreeBSD-autofs
5 17a16,18
6 > FreeBSD-bzip2
7 > FreeBSD-bzip2-dev
8 > FreeBSD-bzip2-lib
9 24,25d24
10 < FreeBSD-clibs-lib32
dch's Avatar

dch / oci-launch-arm64.fish

0 likes
0 forks
1 files
Last active 3 days ago
1 function oci-launch-zfs-arm64
2 set -l USERDATA (mktemp -t oci)
3 echo '#!/bin/sh -eux
4 set -o pipefail
5 touch /var/run/cloud_script_was_here
6 sed -i"" -E -e "s/.*ssh-/ssh-/" /root/.ssh/authorized_keys
7 # https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/gettingmetadata.htm
8 curl --fail -H Authorization:\ Bearer\ Oracle -s \
9 http://169.254.169.254/opc/v2/instance \
10 | jq . > /var/run/oci.json
dch's Avatar

dch / repos.flua

0 likes
0 forks
1 files
Last active 3 days ago
1 #!/usr/libexec/flua
2
3 -- usage - chmod, then `pkg repositories | repos.flua`
4
5 local ucl = require("ucl")
6 local parser = ucl.parser()
7
8 -- read from stdin
9 local data = io.stdin:read("*all")
dch's Avatar

dch / pkg15-current.md

0 likes
0 forks
1 files
Last active 3 days ago

Upgrading a 15.0-RELEASE base package install to 16-CURRENT

I know, 15.0-RELEASE has been out now for over a month, and I'm easily bored. Obviously, it's time to switch back to running 16-CURRENT with whatever random patches I am working on atm.

This is the general procedure:

  • create an old environment
  • create a new boot environment
  • mount it
  • finagle package signatures
dch's Avatar

dch / builder scripts

0 likes
0 forks
5 files
Last active 3 days ago
base system packages, don't forget to add filemon to your /etc/rc.conf kld_list
1 #!/bin/sh -eu
2 export __MAKE_CONF=/dev/null
3
4 umask 0022
5 COMMIT=g$(git rev-parse --verify --short=7 HEAD)
6 NCPU=3.0
7 NOW=$(date -u +%Y%m%d-%H%M)
8 QUIET=' -s'
9 RELEASE=/usr/obj/usr/src/amd64.amd64/release
10 REVISION=$(sh ./sys/conf/newvers.sh -V REVISION | egrep -o '1[0-9]+')
dch's Avatar

dch / poudriere -> s3 sync

0 likes
0 forks
4 files
Last active 3 days ago
riff'd off gist.github.com/bdrewery/9438353
1 #!/bin/sh
2 #
3 # Copyright (c) 2013-2014 Bryan Drewery <bdrewery@FreeBSD.org>
4 # Copyright (c) 2025 Dave Cottlehuber <dch@FreeBSD.org>
5
6 # All rights reserved.
7 #
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions
10 # are met:
dch's Avatar

dch / ten64 dual 1G testing

0 likes
0 forks
2 files
Last active 3 days ago

testing in recovery mode on revD

doas cu -l /dev/cuaU0 -s 115200
Connected
INFO:    checksum 0x9c5886cb
INFO:    n_ranks 2
INFO:    rank_density 0x400000000
INFO:    capacity 0x800000000
Newer Older

Powered by Opengist ⋅ Load: 1026ms⋅

English
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文