4.1 KiB
Updating a Makronix system
Written 2026-11-07. What is set up, what is only a plan, and what is not measured. Nothing here has been run on an installed system over time.
2026-11-09: xsrc removed, X from pkgsrc
xsrc/ is gone; X11_TYPE=modular, and Xorg comes from pkgsrc. An existing
build tree keeps the old X files in build/obj/destdir.<arch>; checkflist
then reports 10.324 extra files under /usr/X11R7,
/usr/libdata/debug/usr/X11R7, /etc/X11, /etc/fonts, /etc/drirc,
/etc/rc.d/{fccache,xdm,xfs} and /var/db/obsolete/x*. Remove those from the
destdir (or start from a clean build/obj) before the first release without
xsrc (build/logs/make-release-2026-11-09-xsrc-gone.log:67521).
Packages
- Where they come from. The installer writes
/etc/pkg_install.confwithPKG_PATH(the NetBSD project's binary repository for the release the packages of the media come from,PKG_REPOSITORYinsrc/usr.sbin/sysinst/setup.c) andCHECK_OS_VERSION=no(the packages are built for NetBSD 11.0, Makronix is 11.99.9:pkg_addwould warn about every one). Sopkg_add firefoxandpkg_add -uwork as on any NetBSD. - Security. The installer sets
fetch_pkg_vulnerabilities=YESin/etc/daily.conf.daily(8)then fetches the vulnerability list (etc/daily:267-275) andsecurity(8)runspkg_admin audit(etc/security:1096); the report goes to root's mail. That is NetBSD's own mechanism, nothing of ours. - What is ours. The
makronixset (CDE, vim, flex, git and what they need) is unpacked by sysinst without a package database:pkg_add -udoes not update those files,pkg_infodoes not list them. They change with the next release of Makronix. The extra programs (Firefox, Thunderbird, QEMU) are installed withpkg_addand are registered: those do update. - Not measured:
pkg_add -uon an installed system, the repository URL after the quarter changes (2026Q4), and what happens when a package of the repository overwrites a file of themakronixset (the install of the extra programs did not conflict,docs/BUILD-VM.md).
The base system
- A new release comes as new media (
make release,make iso); sysinst's "Upgrade NetBSD on a hard disk" unpacks the sets over the system and the administrator runspostinstallandetcupdateas the NetBSD documentation describes (src/usr.sbin/postinstall,src/usr.sbin/etcupdate). - Not measured: an upgrade of a Makronix system by sysinst, with or without
the
makronixset, with the three CDs (the Next-CD menu is in the install path only). - On the build VM,
make installputs a new build over a running Makronix (installworld).
An encrypted system: the gap
An encrypted installation (cgdroot.c) has a small boot partition,
cgd.conf (FFS), with the kernel, cgdroot.kmod, boot.cfg and cgd.conf;
the boot loader reads it before the disk is unlocked. /cgdboot in fstab
is that partition (noauto). The kernel the system runs from comes from the
copy on that partition, not from /netbsd of the root file system.
So a kernel update on an encrypted system is not complete until the new
netbsd (and the cgdroot.kmod of the same release) are copied to the boot
partition:
mount /cgdboot
cp /netbsd /cgdboot/netbsd
(cp the cgdroot.kmod of the new release to /cgdboot)
umount /cgdboot
This is the procedure by hand, not measured, and nothing does it for the user. sysinst's upgrade path does not unlock a cgd root at all. What is missing, in order of need:
- a script on the system that does the copy above (and keeps the old kernel as
netbsd.oldfor the loader's menu), run after every kernel install; - sysinst's upgrade for a cgd root: ask for the passphrase, bring up
cgd0, mount, upgrade, and do step 1; - a test: install, upgrade, boot, with the log in
build/logs/.
A different route, not decided
sysutils/sysupgrade (pkgsrc) upgrades a NetBSD system in place from the
project's binary sets. It would not know the makronix set. Whether Makronix
ships its own sysupgrade or relies on media is open.