The installer cannot read its own CD: cd9660.kmod is 62 hours older than the kernel inside the same ISO, so the module does not load. build.sh iso-image only packages releasedir; the kmods come from distribution. Two steps, in this order, with the timestamp check as the gate. docs/HANDOFF-2026-11-05.md carries the measurements, the file map and what is already proven (unencrypted GPT/EFI install boots to login:).
43 lines
2.0 KiB
Plaintext
43 lines
2.0 KiB
Plaintext
# Full Disk Encryption, NetBSD wiki -- what it says, verbatim
|
|
|
|
Source: https://wiki.netbsd.org/security/cgdroot/
|
|
Fetched: 2026-11-05, saved as build/cgdroot.html (14.189 B), text extracted below.
|
|
Page footer: "Last edited late Sunday night, July 20th, 2026".
|
|
|
|
## The boot mechanism (quoted)
|
|
|
|
"The bootloader loads the kernel from the boot partition.
|
|
The kernel loads a file system image ramdisk-cgdroot.fs from the boot partition
|
|
as the initial root file system and starts init(8) from inside it.
|
|
init(8) runs the /etc/rc script inside ramdisk-cgdroot.fs to configure cgd(4)
|
|
volumes, which will prompt for your passphrase.
|
|
Once the cgd(4) volumes are configured, the /etc/rc script inside
|
|
ramdisk-cgdroot.fs mounts the final root file system at /altroot, and instructs
|
|
init(8) to chroot into it."
|
|
|
|
"The boot partition on disk must contain: boot(8) ... boot.cfg(5) ... a kernel
|
|
image ... ramdisk-cgdroot.fs ..."
|
|
|
|
"Additionally, there must be a config partition ... containing ... cgd.conf ...
|
|
cgdconfig(8) parameter files for each volume"
|
|
|
|
"menu=Boot normally:rndseed /etc/entropy-file;fs /ramdisk-cgdroot.fs;boot /netbsd.gz"
|
|
|
|
## The decisive sentence about sysinst (quoted)
|
|
|
|
"It should really be possible to install NetBSD this way with sysinst(8).
|
|
Unfortunately this is not supported yet."
|
|
|
|
## Consequences
|
|
|
|
1. Upstream sysinst has NO encrypted-root install flow. The wiki says so in one
|
|
sentence. The menus.pm cgd options (MSG_encrypt, FS_CGD) exist in the source,
|
|
but they are gated at runtime by have_cgd = binary_available("cgdconfig")
|
|
(util.c:2468) and removed when false (partman.c:3226).
|
|
2. The documented path is manual: create the cgd volume, newfs it, mount it,
|
|
unpack the sets into it, and put kernel + ramdisk-cgdroot.fs + cgd.conf +
|
|
cgdconfig param files on the unencrypted boot partition.
|
|
3. Making sysinst do this is therefore a NEW feature, not a return to the
|
|
NetBSD way. If Makronix ships it, it is a declared deviation and must be
|
|
patched in and documented as such -- not described as "what NetBSD does".
|