Commit Graph
3 Commits
Author SHA1 Message Date
lotherk d17ad7a219 docs/reference/sysupgrade.txt: the 2026-11-14 reading put back, a measured section added (t0055)
My commit e52d511ec0 replaced this file instead of adding to it: `ls
docs/reference | head -40` had cut the list before this name, so I took it for
new and wrote over 211 lines of saved reading.  docs/reference/AGENTS.md is
explicit ("Correct a file by a dated note, not by silent rewriting"), so this
restores the file byte for byte from e52d511ec0^ (verified: the diff against
that commit is 53 insertions, 0 deletions) and appends what was measured
today, as section "2026-11-15: measured in this tree".

The measurements, each with its line:
- `config(1)` is comp-obsolete in this tree (src/distrib/sets/lists/comp/
  mi:4719-4720) and absent from the destdir, so KERNEL=AUTO does not merely
  "need config" -- sysupgrade stops with "Failed to determine kernel name".
- The set carries only share/examples/sysupgrade/default.conf; the
  /usr/pkg/etc/sysupgrade.conf of CONF_FILES (recipe:26) is a pkg_add action
  and shtk_config_load is fatal on a missing file
  (share/shtk/config.subr:176-181): the upgrade command must pass -c.
- pkgsrc's default.conf names the NetBSD daily snapshots, not our source.
- The release's 24 *.tar.xz sets match pkgsrc's ARCHIVE_EXTENSION (tar.xz on
  x86_64), no override needed.
- /usr/pkg/sbin/sysupgrade (17447 bytes) and shtk are in the destdir -- the
  NetBSD binary of packages.list:48.
- The package's cache is /var/cache/sysupgrade (recipe:18-20).
- No set is verified (ftp(1), tar -xp); t0078.
2026-11-15 09:04:46 +00:00
lotherk e52d511ec0 docs/reference/sysupgrade.txt: what sysupgrade 1.5 does on this tree (t0055)
packages.list:46-48 takes sysutils/sysupgrade as a binary of the makronix
set and names docs/reference/sysupgrade.txt as the reading behind it, and
docs/reference/AGENTS.md lists the file too; neither existed.  This is the
reading, done in the distfile sysupgrade-1.5.tar.gz (build/distfiles) and
pkgsrc's three patches, with the claims measured in the tree.

What it settles for t0055:
- RELEASEDIR is the architecture directory of a release (it fetches
  binary/sets/<set>.<ext> and binary/kernel/netbsd-<KERNEL>.gz under it), so
  build/obj/releasedir/amd64, not the sets directory; the sets there are
  *.tar.xz and pkgsrc's ARCHIVE_EXTENSION is tar.xz on x86_64.
- file:// is not an accepted form: an absolute path, ftp://, http://, ssh://
  (and https:// through pkgsrc's patch).  Our command has to translate
  file:///DIR to /DIR.
- KERNEL=AUTO needs config(1), which is comp-obsolete in this tree
  (src/distrib/sets/lists/comp/mi:4719-4720) and not in the destdir: it
  fails, it does not skip; KERNEL must be explicit (GENERIC on amd64).
- SETS=AUTO takes /etc/mtree/set.*, and set.makronix is one of them: the
  makronix set is fetched and unpacked with the base system.
- The configuration file does not exist on an installed system: the set
  carries share/examples/sysupgrade/default.conf, the CONF_FILES copy to
  /usr/pkg/etc/sysupgrade.conf is a pkg_add action, and shtk_config_load
  stops when the file is missing.  The command of t0055 passes -c its own.
- Nothing verifies a set (t0078's subject).

Also recorded as makronix wiki entry e00012.
2026-11-15 09:03:42 +00:00
lotherkandClaude Sonnet 5.5 ceae177fb5 mxupgrade: upgrade the base system with one command (t0055)
sysutils/sysupgrade (the NetBSD project's binary) joins the makronix set;
mxupgrade(8) turns file:// into a path, says what comes, runs sysupgrade and
copies kernel and cgdroot.kmod to /cgdboot on an encrypted system; sysinst
writes /etc/sysupgrade.conf.  docs/reference/sysupgrade.txt has what the
decisions rest on.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 12:09:08 +00:00