diff --git a/RELEASE.md b/RELEASE.md index c3f8cac..218dcd2 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -211,8 +211,8 @@ release/vm.sh pull-out 14.3 26.1 # -> /scratch/mono-opnsense/out/26.1 of hanging. 2. Applies `patches//*.patch` to core with `git am`. Core's version becomes `_`. -3. Builds base, kernel and xtools, then this repository's kernel modules, as - an early check against the new kernel. +3. Builds base and kernel, then this repository's kernel modules, as an + early check against the new kernel. 4. Builds the ports in one tools ports step over the whole list, tools' `ports.conf`. Tools caches the build-only dependencies it builds (cmake, autoconf, the Rust and Go compilers) for the rest of a step only, and the @@ -308,9 +308,7 @@ release/vm.sh pull-out 14.3 26.1 # -> /scratch/mono-opnsense/out/26.1 with the key. So `finish` first unpacks the aux set, signs its catalogue with `pkg repo` and repacks it. `gwmirror verify` found the aux catalogue unsigned on 2026-11-22. -3. Builds the 5 GB ZFS eMMC image (`mk-image.sh`). On a cross-building - host the xtools set is moved aside first, because tools would otherwise - overlay amd64 toolchain files onto the image. +3. Builds the 5 GB ZFS eMMC image (`mk-image.sh`). 4. Imports the image's pool read-only, without mounting it, and mounts each dataset read-only by itself. Mounting them all at import does not work: the pool's own dataset needs a mountpoint inside the read-only root, and @@ -320,18 +318,6 @@ release/vm.sh pull-out 14.3 26.1 # -> /scratch/mono-opnsense/out/26.1 cannot pass. 5. Compresses and signs the image. -**To time a few ports** before a first full build of a series: - -```sh -release/vm.sh run 14.3 pilot 26.1 26.1.11 security/suricata databases/py-duckdb@py313 -``` - -The pilot builds base, kernel and xtools, then the given ports with their -dependencies (fetching and repairing distfiles as the build does), timing -each. It then removes its partial packages set (tools would otherwise -consider the ports built); base, kernel, xtools and distfiles are kept for -the full build. - ### Board package version `mono-gateway` is versioned `_`, @@ -427,68 +413,124 @@ python3 mirror/gwmirror.py verify --url http://127.0.0.1:18080 --allow-http --se ## Migrating a gateway from opnsense.mono.si +Shell commands, run on the gateway over ssh as root. Root's shell there is +csh, which does not take `#` comments typed at the prompt: start `sh` first. +ApolloGuardian was migrated this way on 2026-11-23. + **Before you start:** - Download a configuration backup (System > Configuration > Backups). -- Set System > Firmware > Settings > Mirror to "(default)". -- Have the serial console (115200 baud) at hand for the first kernel update. +- Have the serial console (115200 baud), or Recovery Linux and the image in + `releases/26.1/`, at hand for the first kernel update. +- `opnsense.karsttech.com` resolves to the public address, which is the + gateway's own WAN address: without an Unbound host override to the + proxy's LAN IP, the gateway connects to its own web GUI. With the + override, the URL depends on the proxy's LAN port (step 4). -**Steps:** - -1. Copy the script and the fingerprint to the gateway, then do a dry run: - - ```sh - scp release/migrate-device.sh keys/fingerprints/trusted/opnsense.karsttech.com.20261117 root@gw:/root/ - ssh root@gw sh /root/migrate-device.sh repoint --mirror https://opnsense.karsttech.com \ - --fingerprint /root/opnsense.karsttech.com.20261117 --dry-run - ``` - -2. Run the same command without `--dry-run`. `repoint` does the following; - every file it changes is backed up to `/root/gwmirror-backup-