Konrad, 2026-11-16: the master key model. The root key stays offline with
Konrad and signs release keys only; the release key (0.99) signs the SHA512
of a release. Rotation is a new release key plus one signature by the root
key, not a new root.
- src/etc/signify/makronix-root.pub and makronix-0.99.pub.sig are installed
next to the release key (etc set, etc-sys-etc); the private root and
release keys are outside the tree (SIGNIFY_ROOT_SECKEY, SIGNIFY_SECKEY).
- tools/sign-release.sh: sign, verify (checks root -> release key -> file)
and sign-key (root signs a new release public key).
- GOAL.md names the chain.
Measured: sign-key with the root key produces the same Ed25519 signature;
verify prints "signed by the root key" and "good signature" for a signed
test file.
GOAL.md names the decisions: an own signify key for updates (private key
offline with Konrad, public key in /etc/signify, release signs the SHA512 of
the sets and of the medium's package list); the makronix packages as binary
packages installed with pkg_add, not unregistered files; sshd on with root
and password as before, but the firewall lets port 22 in from the local
network only; make release builds everything in one run (userland,
distribution/release, source set, install DVD, USB image) with test and
compress as separate commands; make install installs base, X, the makronix
set and the packages; BUILD-CONTRACT is rewritten now.
BUILD-CONTRACT.md is rewritten for the current tree: the four entry points,
cross and native as one build, checkflist as the gate, the three sections of
a card, the reviewer's own run, and what "done" means for build, medium,
encryption and source set. docs/AGENTS.md loses the stale-parts note.
The source medium carried six sets: NetBSD's src, gnusrc, syssrc and
sharesrc at /usr/src, xsrc at /usr/xsrc and msrc at /usr/msrc. Makronix is
one tree, so there is one set now: src.tgz, unpacked to /usr/src, with the
repository as it is -- src/, xsrc/, ext/, pkgsrc/, mobile/, www/, docs/,
tools/, the root files, PINS, packages.list, distfiles.lst and distfiles/
(only the archives of the Makronix packages).
- makesrctars -m packs the staged tree as usr/src and skips the split sets.
It keeps the modes and the links of the repository (pkgsrc and tools run
their scripts directly); build.sh gets the directory as MAKROSRCDIR.
- tools/srctree-stage.sh replaces tools/msrc-stage.sh. It copies git's file
list of the root repository and of pkgsrc (tracked files plus the untracked
Makronix recipes: AGENTS.md, wm/mcde, x11/mcde-motif,
filesystems/afpfs-ng), stages the distfiles, and puts the pkgsrc patch
names that ustar cannot store into pkgsrc-longnames.cpio.
- makesrctars removes source sets of the old layout from
RELEASEDIR/source/sets before it writes, so no stale gnusrc/msrc/xsrc can
travel on a medium.
Measured: tools/srctree-stage.sh -> 462655 entries, 11 GB, 214 names in
pkgsrc-longnames.cpio; make sourcesets verified distfiles.lst (2010 archives,
0 missing, 0 wrong hash) and wrote RELEASEDIR/source/sets/src.tgz
(build/logs/sourcesets-2026-11-15.log).
The installer side is not in this commit: it is being changed in the same
tree by the sysinst profile work (tasksd t0260) -- one SET_SRC, the long-name
extraction from /usr/src/pkgsrc, the messages and sysinst.8.
docs/OFFLINE-BUILD.md, docs/BUILD-VM.md, docs/LICENSES.md and GOAL.md
describe the one tree.
The question was 'read it in sysinst and the loader before code is written'. That
was done and tested: docs/reference/cgdroot-design.txt, section UEFI (the EFI
loader's default device is the first FFS partition, biosdisk_findpartition;
boot.cfg comes from esp:/EFI/NetBSD/boot.cfg; layout ESP 128m + cgd.conf 256m FFS
+ cgdroot; tools/install-cgd.sh -f uefi passed). Not tested, and said so: real
NVRAM boot entries, a wrong passphrase, a kernel update. The source set's name
stays open.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
consmirror.c: the BSD notice is replaced (Makronix's own file). Files with
changes of other sessions pending are left for their commit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Makefile: -x -X $(XSRC); build-stamp keys on xsrc/ too; PINS and
makronix-pins.sh carry xsrc/BASE.
- pkgsrc-cross.mk.conf: X11_TYPE=native (pkgsrc uses the sysroot's /usr/X11R7).
- packages.list: no pkgsrc X any more (the X sets carry server, drivers,
fonts, clients); built here only the forks of ext/ (MCDE, Motif,
afpfs-ng) and flex; vim, git, samba, netatalk, sshfs, borg, pulseaudio,
pavucontrol, cups, firefox, thunderbird and the games (RetroArch with
all libretro cores, ScummVM with BASS and FOTAQ, Tux Racer) are the
NetBSD project's binaries (kind fetch).
- pkg-binaries.sh: resolve by PKGPATH (samba4 is samba-4.x), an empty
queue no longer trips set -u; cd3.sh top.list by PKGPATH as well.
- userland.sh: the host tools of the whole dependency closure.
- AGENTS.md, GOAL.md: the decision and why (measured: "The X-server can
not be started on display :0").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- xsrc/ deleted; X11_TYPE=modular, Xorg and the X libraries come from pkgsrc
(packages.list), in the cross configuration and the build VM.
- overlay/ and patches/ are gone; their content is in src/ (commit 64934f16).
- Makefile: no -x/-X, no overlay target, stamp no longer syncs an overlay.
- makronix-pins.sh: src/BASE + pkgsrc; msrc-stage: no .git/xsrc, src comes
from the NetBSD source sets.
- AGENTS/GOAL/docs updated to the new model (src tracked, refs/ read-only).
- mobile: kernel source is refs/linux/7.0.0, patches stay in
mobile/kernel/patches; fetch-kernel clones it locally and checks the pin.
Measurements named with their logs: the installs (BIOS, UEFI, encrypted, two CDs), the NetBSD self-build in the build VM (2 h 02 min, stopping only at checkflist for the missing userland), 9p and NFS against the local disk.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>