Repository navigation
docs: 1bit OS v3 - the installed machine is an Ubuntu 26.04 Server (engine#712) - #717
Conversation
…ngine#712) The design for #712: the live stick stays the os/mini image and becomes the autoinstall carrier; the installed machine is a headless Ubuntu 26.04 Server with our kernel, drivers, runtime, engine and Lemonade as apt packages. Covers the stick and target partition layouts, the autoinstall user-data and its nine postinstall steps, the install screen (#710), the firmware boot entry and efivarfs fix (#709), the package set with measured sizes, the pinned libhsa and the no-SVM trio (#715), the v2 -> v3 adopt-/data path, the QEMU A/R/I/B gate plus the new V phase, and the board gate. Numbers are measured on the rebuilt strixhalo box; what is not measured is listed as the build's risk list.
…aders package is on demand
…nt on the install screen
…e's 1-9 is one list
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
Docs-only (docs/os-v3.md, +483, one file), tools/copyright.py --check rc 0. A design page's value is whether its measured facts hold, so I spot-checked the table against this box rather than reading it.
Confirmed exactly, on strixhalo just now:
| doc claim | found |
|---|---|
base Ubuntu 26.04.1 LTS, resolute |
PRETTY_NAME="Ubuntu 26.04.1 LTS", VERSION_CODENAME=resolute |
kernel 7.3.0-rc4-1bit-perfopt+ |
uname -r → 7.3.0-rc4-1bit-perfopt+ |
XRT libxrt-npu2, libxrt2 1:2.21.75+dfsg-4 |
both 1:2.21.75+dfsg-4 |
amdnpu/17f0_11/npu.sbin.zst |
present |
97 efivars |
ls /sys/firmware/efi/efivars | wc -l → 97 |
efibootmgr 10 entries; Boot0000 Ubuntu → \EFI\ubuntu\shimx64.efi; stale Boot0002 1bit OS USB |
all three exactly as written |
ROCm /opt/rocm-therock 7.2 GB |
du -sh → 7.2G |
the three libhsa: nightly 21a66824…, distro 5b113248… |
/opt/rocm-therock/.../libhsa-runtime64.so.1 → 21a66824, /usr/lib/x86_64-linux-gnu/libhsa-runtime64.so.1 → 5b113248 |
firmware …npu.sbin.zst from linux-firmware-amd-misc 20260319.git217ca6e4-0ubuntu1.1 |
matches |
That is a level of detail that is usually wrong somewhere; here it was right in every cell I could check.
One cell does not match this box: the doc lists both firmware packages as …20260319.git217ca6e4-0ubuntu1.1. linux-firmware-amd-misc is indeed -0ubuntu1.1, but linux-firmware-amd-graphics here is -0ubuntu3.1. Either the row should be split (misc -0ubuntu1.1, graphics -0ubuntu3.1) or say the two packages are not on the same revision — worth fixing because the page is a pinning reference.
Two suggestions, not blockers:
- The
## The os/v3treetable reads as a listing of files, andos/v3does not exist in this tree (the sibling sections do say "pinned inos/v3/pin.txt` at the first build", so the intent is clear once you have read the whole page). One clause — "the tree this page proposes; none of it lands in this PR" — removes the ambiguity for someone who jumps straight to that section. - The "Not measured, and therefore the risk list" list is the strongest thing in the page: naming the five unknowns (ISO sha256, subiquity's handoff,
mokutilfrom a curtin chroot,preserve: trueover a v2 table, ROCm subset completeness) with the fallback for each is exactly the shape a design doc should have. Nothing to change; noting it so it does not get trimmed in a later edit.
CI at 27bc3d3: build, CodeQL, Analyze ×4 completed success. tprs-ready applied.
…om URI outlives the stick The seed's apt.primary is the archive (stock packages only) with curtin's offline-install fallback; postinstall installs the medium's repo through a temporary source it removes, and 1bit.gg/apt stays the installed machine's one source, as v2 has it.
…ot deferred - a Linux user name starts with a letter (adduser's default NAME_REGEX is ^[a-zA-Z][a-zA-Z0-9_-]*$, measured here, and the installer applies the same rule): 1bit would be refused before the first byte is written, so the account is onebit. docs and the seed agree, and the seed refuses 1bit by name. - the server ISO is pinned for real: 26.04.1, 2,927,861,760 bytes, sha256 cc8a95cd..., volume label read out of the ISO's primary volume descriptor (the string casper matches), all in os/v3/pin.txt. It moves out of the not-measured list; what stays there is that the medium has never been booted. - the tree table says what is in the tree (pin.txt, seed.sh, seed-selftest.sh) and what is still a design.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: CHANGES
At 4eac0f7c — the head moved and the change was not just a rebase (patch-id 6dcd95c91fe2 -> 2cf2b98c264c), so my earlier READY does not carry. I have removed tprs-ready.
The new claim is false at this head. Line 26 now reads:
The first slice is in the tree:
os/v3/pin.txt(the pinned server ISO) andos/v3/seed.shwith itsseed-selftest.sh(31 checks, no device).
There is no os/v3 in this branch:
git ls-tree -r --name-only 4eac0f7c | grep ^os/ | cut -d/ -f1-2 | sort -u
os/LICENSES.md os/README.md os/licenses os/mini os/v2
git ls-tree -r --name-only 4eac0f7c | grep -c '^os/v3/' -> 0
So the sentence asserts files that do not exist — and it replaces a sentence that was true at the previous head (os/v3 does not exist in the tree). The ## The os/v3 tree table a few hundred lines down still lists mkstick.sh, mkdebs.sh, postinstall, steps, the vmtest scripts as design, which is consistent; only this one line claims the opposite. Two ways to fix: land the pin.txt/seed.sh slice here (or in the PR that carries it) so the sentence is true, or say "design, pending its own PR — the first slice is pin.txt + seed.sh + seed-selftest.sh, not in this PR". The 31 checks, no device figure needs a source either way: I cannot run os/v3/seed-selftest.sh because it is not in the tree, so that number is unchecked.
The firmware row nit is still there (it was in my previous review and is unchanged): line 450 lists both packages as 20260319.git217ca6e4-0ubuntu1.1, but on this box linux-firmware-amd-graphics is -0ubuntu3.1 while -amd-misc is -0ubuntu1.1. Split the row, or say the two packages are on different revisions.
What I checked and still stands from the previous head: the measured table (base 26.04.1/resolute, kernel 7.3.0-rc4-1bit-perfopt+, XRT 1:2.21.75+dfsg-4, 97 efivars, 10 efibootmgr entries, stale Boot0002 1bit OS USB, ROCm 7.2 G, libhsa 21a66824/5b113248) matched this box cell for cell; tools/copyright.py --check rc 0. The 1bit -> onebit user rename and the new apt-source paragraph (a file:///cdrom URI left behind is a dead source once the stick is out) both read correctly to me.
No tprs-ready until the os/v3 sentence matches the tree.
PR Reviewer Guide 🔍(Review updated until commit 7443f45)Here are some key observations to aid the review process:
Numbers: 1 GiB is the Ubuntu default and the measured size of this box's ESP (1.1 GiB, 6.4 MB used, so
fstab by UUID, not by label. v2 mounts The autoinstall#cloud-config
autoinstall:
version: 1
# Nothing is asked. The two questions that must not be silent - which disk, which user - are answered
# by /1bit/identity at stick-write time and shown on the install screen before anything is written.
interactive-sections: []
refresh-installer: {update: false} # the medium is pinned; no network fetch of subiquity
locale: en_US.UTF-8
keyboard: {layout: us}
timezone: America/Halifax
identity:
hostname: "@HOSTNAME@"
username: "@USER@"
password: "@PASSWORD_HASH@" # openssl passwd -6, generated on the build machine
ssh:
install-server: true
allow-pw: false # keys only; the password is for sudo and the console
authorized-keys: ["@SSH_KEY@"] # from /data/ssh/authorized_keys on the stick
storage:
swap: {size: 0}
config:
- {type: disk, id: disk0, ptable: gpt, grub_device: true, preserve: false,
match: {serial: "@DISK_SERIAL@"}} # a stick cannot wipe a machine it was not written for
- {type: partition, id: part-esp, device: disk0, number: 1, size: 1G, flag: boot, wipe: superblock}
- {type: format, id: fmt-esp, volume: part-esp, fstype: fat32, label: 1BIT-OS}
- {type: mount, id: mnt-esp, device: fmt-esp, path: /boot/efi}
- {type: partition, id: part-root, device: disk0, number: 2, size: 64G, wipe: superblock}
- {type: format, id: fmt-root, volume: part-root, fstype: ext4, label: 1BIT-ROOT}
- {type: mount, id: mnt-root, device: fmt-root, path: /}
# preserve: true is the v2 -> v3 upgrade path in one key: an existing 1BIT-DATA is adopted with its
# contents, and on a fresh disk curtin creates it. No separate "upgrade" installer exists.
- {type: partition, id: part-data, device: disk0, number: 3, size: -1, preserve: true}
- {type: format, id: fmt-data, volume: part-data, fstype: ext4, label: 1BIT-DATA, preserve: true}
- {type: mount, id: mnt-data, device: fmt-data, path: /data}
apt:
geoip: false
preserve_sources_list: false
# The archive, for the stock packages only. Ours come from the medium in postinstall and are *not* a
# persistent source: a file:///cdrom URI left in the target's sources.list is a dead source the moment
# the stick is out, so the installed machine's one source is 1bit.gg/apt (written by 1bit-appliance, as
# v2 does), and postinstall installs the medium's repo through a temporary source file it removes.
primary:
- {uri: "http://archive.ubuntu.com/ubuntu", arches: [amd64]}
fallback: offline-install
packages: [openssh-server, efibootmgr, mokutil, unattended-upgrades, ca-certificates, curl,
python3-minimal, rsync, zstd, pciutils, lm-sensors, ethtool]
early-commands:
- /cdrom/1bit/steps plan # the whole step list, before subiquity draws (#710)
late-commands:
- curtin in-target -- /cdrom/1bit/postinstall # the steps in the next section
error-commands:
- /cdrom/1bit/steps failed # last step turns red, its output and the log path stay on screen
reporting:
builtin: {type: print}What each part is for, and what it is not:
|
| screen step | command | what it writes |
|---|---|---|
| 3 | apt-get install our repo's debs (1bit-kernel-<kver>, 1bit-kernel-modules-<kver>, 1bit-rocm, 1bit-xrt, 1bit-engine, 1bit-lemonade, 1bit-appliance, 1bit-archive-keyring) |
/opt/1bit, /opt/lemonade, /boot/vmlinuz-<kver>, /lib/modules/<kver>/updates/{amdxdna,ec_su_axb35}.ko |
| 4 | update-initramfs -u -k <kver>, update-grub |
an initramfs with amdgpu, amdxdna, efivarfs, and one grub entry per kernel in /boot |
| 5 | mokutil --test-key /cdrom/1bit/mok/MOK-Kernel.der else mokutil --import (password on stdin, twice) |
the MokNew efivars the next boot's MokManager reads |
| 6 | efibootmgr -c -d <disk> -p 1 -L "1bit OS" -l '\EFI\ubuntu\shimx64.efi', -o first, -n BootNext, delete entries whose loader is not on this ESP |
the firmware entry engine#709 asks for |
| 7 | adopt /data: chown onebit, install -d models lemonade/cache lemonade/config cache/hrx-jit npu ssh, copy /data/ssh/host_ed25519 to /etc/ssh/ssh_host_ed25519_key |
a machine whose SSH identity survives a reinstall |
| 8 | verify: mount -o ro both partitions, sha256sum /boot/vmlinuz-<kver>, dpkg-query -W '1bit-*', systemctl is-enabled the unit set, 1bit-release-check |
/data/install.log on both media, the screen, ttyS0 |
The 1bit-appliance postinst enables the unit set exactly as v2 does, including the measured
ssh.socket rule (enabling ssh.service as well makes a connection hang at banner exchange) and
systemctl --root-safe links for the chroot install.
The install screen (engine#710)
One renderer, the same one v2's os/mini/tui.sh work already implements: a full-screen step list on
tty1 with a fixed log tail, one line per step that flips pending → running → done with its elapsed time,
a determinate bar with MB/s and ETA for the steps that move bytes, and a red step that stops the screen
with the failing command and its output. [ -t 1 ] false (the serial line, the QEMU harness) prints the
same lines as plain text, byte-for-byte, which is what the gates assert.
The screen covers the whole install, which for v3 means one list that spans both processes:
1 target disk and identity /dev/nvme0n1 YMTC PC41Q-2TB 1.9 TB user onebit host 1bit-strixhalo
2 base system (Ubuntu 26.04 Server) curtin: partitions, unpack, packages, bootloader
3 our repository from the stick 8 debs: kernel, modules, rocm, xrt, engine, lemonade, appliance, keyring
4 kernel and modules vmlinuz-7.3.0-rc4-1bit-perfopt+, amdxdna, ec_su_axb35, initramfs
5 Secure Boot key already enrolled | queued for MokManager at the next boot
6 firmware boot entry 1bit OS -> \EFI\ubuntu\shimx64.efi BootOrder 0000,...
7 data partition adopted 1BIT-DATA (1.1 GB, 4 models) | created empty
8 verification ESP listed, kernel sha256, 8 packages, units enabled
9 done remove the stick; rebooting into the installed system in 10 s
Steps 1, 3–9 are ours (early-commands, postinstall, error-commands), step 2 is subiquity's and is
shown by subiquity. The handoff is explicit and is the one thing in this design to prove in the gate:
subiquity draws tty1 from the moment it starts, so our step lines are written to tty1 and ttyS0
and curtin's log (whose tail subiquity displays); if the tail does not show them, the renderer takes
tty1 after curtin's postinstall stage instead, and the QEMU gate decides between the two by grepping the
serial transcript — either way the transcript carries every step, which is what the gate asserts.
Engine#710's other requirements map as: every step also to /data/install.log on the stick (/cdrom/...
is read-only) and on the disk, plus ttyS0; errors never a bare exit; the final line and its countdown are
ours, printed before subiquity's own "Installation complete" reboot — and because step 4 sets BootNext
to the disk's entry, that reboot lands on the installed system with the stick still in, which is the
part the owner actually needs after engine#709.
The firmware boot entry (engine#709)
The failure that motivated it, measured on this box: efibootmgr -v shows ten entries in BootOrder,
Boot0000 "Ubuntu" → \EFI\ubuntu\shimx64.efi on the current ESP, and a stale Boot0002 "1bit OS USB"
that points at a VenHw device path with no file. After the first v2 install the firmware tried the wiped
Ubuntu entry, failed, and fell through to the stick.
Three fixes, all in the installed system rather than in a special-case installer:
- efivarfs exists. Our kernel is built with
CONFIG_EFIVAR_FS=m(measured in
/boot/config-7.3.0-rc4-1bit-perfopt+) and an Ubuntu base loads it, so/sys/firmware/efi/efivarsis
populated (97 entries on this box). The v2 image never staged the module and BusyBox never loaded it,
which is why the live installer could not fix anything from inside the installed system either
(engine#709). v3 installs from a full Ubuntu session, whereefibootmgrworks, and asks for=y
in the kernel config anyway so the next BusyBox image cannot regress it. efibootmgris in the image and in the target (packages:above), and the entry points at the
shim Ubuntu's bootloader step installed, not at a path we invented.- The entry is created, ordered and cleaned, and the resulting
BootOrderis printed on the install
screen (step 6) and written to the log. Deleting entries whose loader does not exist on the target
disk is the part that stops a batch of dead entries from reordering future boots.
The QEMU gate asserts the entry because OVMF has working efivars: after the install, with the same NVRAM
copy, efibootmgr -v in the installed system must show 1bit OS first in BootOrder.
The package set
1bit.gg/apt, same names and layout as v2, with the pieces Ubuntu 26.04 or the release already provide
not re-built:
| package | what | size (measured where noted) |
|---|---|---|
1bit-kernel-image-<kver> |
/boot/vmlinuz, config, System.map; postinst runs update-initramfs; versioned name = the rollback |
86 MB .deb (this box) |
1bit-kernel-headers-<kver> |
installed only when the out-of-tree modules must be rebuilt on a kernel bump; not in the seed's package list, so a fresh install has the eight below | 10 MB .deb (this box) |
1bit-kernel-modules-<kver> |
amdxdna.ko (0.18.0 pin) and ec_su_axb35.ko in /lib/modules/<kver>/updates/, signed with our MOK (strixhalo Secure Boot Kernel, measured) |
34 KB + 450 KB loaded |
1bit-rocm |
the pinned TheRock user space the release was gated with, at its measured paths: libhsa-runtime64.so.1, libamd_comgr.so.3, libamdhip64.so, librocblas, libhipblaslt, librocsolver, librocsparse, llvm/amdgcn/bitcode; /etc/1bit/libhsa.env with the no-SVM trio |
173 MB + 3.5 MB bitcode |
1bit-xrt |
Depends: the archive's libxrt-npu2, libxrt-utils-npu, libxrt2 (measured 1:2.21.75+dfsg-4) — the device nodes and tools, not rebuilt |
from the archive |
1bit-engine |
/opt/1bit as v2: 1bit, the HRX llama-server and its libraries, 1bit-selftest, 1bit-release-check, 1bit-board, sealed NPU sets, /etc/1bit/engine.conf |
release tarball |
1bit-lemonade |
the release's own lemond + resources (the onebit recipe, one hop to 1bit serve), /opt/lemonade, its unit |
39 MB .tar.zst (c18) |
1bit-appliance |
units (1bit-console on tty1, data.mount, 1bit-board, 1bit-boost, 1bit-first-boot), banner, ssh socket, unattended-upgrades policy, /etc/1bit/power, /data tmpfiles |
— |
1bit-archive-keyring |
the public half of the key that signs 1bit.gg/apt |
— |
1bit-openwebui |
optional, as v2: published, installed by nobody, nothing depends on it | — |
Two things v3 takes from the archive instead of building, because engine#712 is about the OS, not the
supply chain: linux-firmware-amd-graphics and linux-firmware-amd-misc (26.04's split packages,
on two revisions - measured here, -amd-misc 20260319.git217ca6e4-0ubuntu1.1 and -amd-graphics
20260319.git217ca6e4-0ubuntu3.1; -amd-misc is "Firmware for AMD NPU accelerators", and it is
what puts amdnpu/17f0_11/npu.sbin.zst under /lib/firmware), and XRT, as above. Both carry their
own licences and land in /usr/share/doc/<package>/copyright, which is what os/LICENSES.md already
records for the current image.
The runtime is pinned by sha256, and the three runtimes that exist on a v3 box are the three engine#715
measured:
| runtime | sha256 (measured) | v3's use |
|---|---|---|
release-gated libhsa (c18) |
f6ef689d… |
what 1bit-rocm installs |
TheRock nightly at /opt/rocm-therock |
21a66824… |
the same file on a box built from the SDK |
distro ROCm 7.1 libhsa-runtime64.so.1 |
5b113248… |
present because XRT pulls the distro stack — not what HRX loads |
/etc/1bit/libhsa.env (the EnvironmentFile=- hook v2's lemonade unit already has) carries the measured
fault-free arm by default:
HSA_USE_SVM=0
HSA_USERPTR_FOR_PAGED_MEM=0
HRX_ALLOW_NO_SVM=1
ONEBIT_HRX_LIBHSA=/opt/1bit/libhsa/libhsa-runtime64.so.1
This box reports XNACK enabled: NO and Coherent Host Access: FALSE; without the trio HRX page-faults
on its first graph replay (#715, 58 fault lines, HTTP 500 in <10 ms) and the release-tarball runtime
refuses the device outright. 1bit serve --hrx-cwsr-placement is the alternative knob; the doc sets the
trio because it is the arm that was measured fault-free at 260.1 tok/s.
Kernel and modules move together. 1bit-kernel-image-<kver> and 1bit-kernel-modules-<kver> are
the same upstream version and both versioned; the image Depends: the modules of its own <kver>, so no
apt resolution can install one without the other, and unattended-upgrades upgrading the image pulls
the modules in the same run. That is the v2 lesson (a module built for another kernel is a machine whose
fans and NPU are gone) applied to the package graph instead of to mkdebs.sh's checks alone.
unattended-upgrades policy: security updates automatic; 1bit.gg/apt automatic for everything
except 1bit-kernel-* and 1bit-rocm (a kernel needs a reboot, a modules pair, and the gate; a ROCm
move is a measured decision), which are Package-Blacklisted and reported by release-check's updates
row; Automatic-Reboot "false", and the console menu shows "reboot required" instead. That is the
appliance's contract: it cannot silently become a machine nobody measured.
User and ssh: onebit in sudo, root locked, ssh.socket enabled with keys carried from the stick,
PasswordAuthentication no, PermitRootLogin no. The account is onebit and not 1bit because a Linux
user name has to start with a letter — adduser's default NAME_REGEX is ^[a-zA-Z][a-zA-Z0-9_-]*$
(measured in /etc/adduser.conf here) and the installer applies the same rule, so 1bit is refused
before the first byte is written; seed.sh refuses it too and its selftest pins that. Headless means the
console is the fallback, not the other way round: 1bit-menu on tty1 can drop to a shell as onebit
(sudo), and ttyS0 gets a console unit so a serial cable works when ssh does not.
1bit-menu on tty1 is a unit (1bit-console.service, [email protected]), not an
autologin shell: it draws the banner (model, IP, API key hint, GPU/NPU state, pending updates), drives
1bit-release-check, and its whole job after that is to be the screen the owner looks at. ssh and ttyS0
stay plain, which is what keeps the gates unchanged.
The upgrade path
v2 → v3 is a reinstall, not an upgrade, and the installer says so. v2's installed machine is a
BusyBox initramfs on the ESP and one ext4 /data; there is no dpkg database, no user, no package for
apt to upgrade. What carries is exactly what is on /data, because preserve: true keeps partition 3:
| carried | how |
|---|---|
models (/data/models) |
left in place; /data mounted by UUID in the new fstab |
| Lemonade's config, cache and backends | left in place; the unit's HOME=/data/lemonade is unchanged |
hrx-jit kernel cache, sealed NPU sets (/data/npu) |
left in place; GGML_HRX_JIT_CACHE_DIR unchanged |
SSH host key and authorized_keys |
/data/ssh/host_ed25519 → /etc/ssh/ssh_host_ed25519_key; authorized_keys → /home/onebit/.ssh/ |
| Lemonade's API key | /data/lemonade/lemond.conf read as before |
| not carried, by design | why |
|---|---|
| v2's kernel and initramfs on the ESP | v3 keeps its kernels in /boot and its boot chain in the ESP; the old files are removed with the partition table |
/data/.installed |
v3 has no live/installed marker; release-check's mode row reads the mount, not the file |
| root-only ssh | replaced by the onebit user; the same keys work |
The stick for this is the v3 stick with the machine named: prepare-stick.sh --disk-serial …, then the
install. The doc's rule is that a v2 machine can also be returned to v2 by writing the v2 image,
because /data was never touched.
v3 → v3 is apt: apt update && apt upgrade from 1bit.gg/apt, unattended for security and for our
non-kernel packages, with the previous kernel kept installed (versioned package names) so the grub menu
still has the entry to go back to. After any upgrade the machine's own 1bit-release-check runs and its
updates/reboot-required rows say what is pending. No do-release-upgrade is offered from v3: the next
OS change is the next v3 installer, because the base snapshot moves with the release and the kernel is
ours anyway.
The gates
Same four QEMU phases the release already runs (gate-c18.sh), retargeted at the v3 stick, plus one
phase that is new because the install is new:
| phase | what runs | what must hold |
|---|---|---|
| A (stick) | boot the stick's live entry | unchanged from c18: banner, 1bit-selftest, llama-server on HRX0 |
| R (release check) | 1bit-release-check on the stick |
unchanged, plus sealed-sig is still SKIP (the live image has no python3) |
| I (install) | boot the install entry, unattended | the serial transcript contains every step line 1–9, the 1bit OS boot entry and the printed BootOrder, postinstall exit 0, the install log written to both media |
| B (installed) | boot the installed disk alone, same NVRAM | efivarfs mounted; dpkg-query -W '1bit-*' = 8 packages; systemctl is-enabled the unit set; ssh.socket listening; getent passwd onebit and sudo -l; /data mounted from partition 3 by UUID; apt-get update and apt-cache policy from 1bit.gg/apt; unattended-upgrades --dry-run clean; 1bit-release-check PASS with sealed-sig now checked (python3 present); 1bit-console active on tty1 |
| V (v2 → v3) | install a v2 image, then the v3 stick over it | /data contents identical before and after (manifest sha256), the ssh host key unchanged, the v2 ESP gone, the machine boots v3 |
QEMU specifics, all measured as available on this box: qemu-system-x86_64 with
-drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF_CODE_4M.fd and a writable copy of
OVMF_VARS_4M.fd (the efivar assertions need a NVRAM that survives a reboot), -nographic with
console=ttyS0,115200, one NVMe disk with a fixed serial (-device nvme,serial=1BITTEST…) so the seed's
match: {serial:} resolves, 8 GiB RAM, and a second NVMe/-drive for the v2 image in phase V. Secure
Boot stays off in the VM (OVMF_CODE_4M.fd, not …secboot.fd), exactly as v2's vmtest documents: MOK
enrolment is the machine's step, not a VM's.
Board gate (the owner, on the Strix Halo box, stick in hand): boot the stick live, 1bit-release-check
(every row PASS or SKIP with a reason — the VM run's 18-row transcript is the reference for what each row
asserts), then the install entry, watch the screen, then — with the stick still in — confirm the reboot lands on the installed machine; then
efibootmgr -v (1bit OS first), systemctl status the unit set, 1bit-menu on the monitor, ssh from
the build machine with the carried key, HRX chat and NPU chat from 1bit-menu, fans/power units active,
and apt upgrade on the installed box. Secure Boot is on: the install queues our MOK, so the very first
boot after install stops in MokManager and needs one keyboard round trip; on a box that already has the
key enrolled (mokutil --test-key true) there is none. That step is why the doc says the install needs
a console; everything after it is headless.
What is measured now
Reference box (strixhalo, 2026-11-01, the machine this design was written on):
| fact | measured |
|---|---|
| base | Ubuntu 26.04.1 LTS, resolute |
| our kernel | 7.3.0-rc4-1bit-perfopt+, linux-image-7.3.0-rc4-1bit-perfopt+ 7.3.0~rc4-4, CONFIG_EFIVAR_FS=m |
| out-of-tree modules | amdxdna.ko, ec_su_axb35.ko in /lib/modules/<kver>/updates/, both signed strixhalo Secure Boot Kernel, vermagic <kver> SMP preempt mod_unload modversions |
| MOK | CN=strixhalo Secure Boot Kernel, O=1bit-MONSTER, self-signed, EKU Code Signing; Secure Boot enabled |
| firmware | efibootmgr 10 entries; Boot0000 Ubuntu → \EFI\ubuntu\shimx64.efi; stale Boot0002 1bit OS USB; 97 efivars |
| firmware packages | linux-firmware-amd-misc 20260319.git217ca6e4-0ubuntu1.1 and linux-firmware-amd-graphics 20260319.git217ca6e4-0ubuntu3.1 (two revisions, measured; the first is what carries amdnpu/17f0_11/npu.sbin.zst) |
| XRT | libxrt-npu2, libxrt-utils-npu, libxrt2 1:2.21.75+dfsg-4 |
| ROCm | /opt/rocm-therock 7.2 GB; the runtime subset 173 MB + 3.5 MB bitcode; libhsa 21a66824… |
| the three libhsa | f6ef689d… (release), 21a66824… (nightly), 5b113248… (distro 7.1) |
| packages | kernel image 86 MB .deb, headers 10 MB; c18 lemonade-onebit 39 MB; live .img.zst 397 MB; live .efi 106 MB |
| v2 in the field | ESP 512 MiB + 1BIT-DATA; 1bit-install writes /data/.installed; no efivarfs, no efibootmgr (engine#709) |
| c18 gate | A/R/I/B green in QEMU, install writes ESP + /data (1.1 GB copied), the installed boot passes 1bit-release-check 18 rows with sealed-sig SKIP for lack of python3 |
| the install medium | ubuntu-26.04.1-live-server-amd64.iso, 2,927,861,760 bytes, sha256 cc8a95cd…, last modified 2026-08-26, volume label Ubuntu-Server 26.04.1 LTS amd64 — the label read from the ISO's own primary volume descriptor, which is what casper matches; all four in os/v3/pin.txt |
Not measured, and therefore the risk list for the build:
- the medium itself has never been booted — the pin is verified (size, sha256, label) but the QEMU
phase I run is what proves casper finds/cdromand subiquity takes the seed; - subiquity's screen handoff — whether our step lines appear in the tail it displays, or whether the
renderer must take tty1 after curtin (the gate decides; both keep the serial transcript complete); mokutil --importreading its password from stdin in a curtin chroot — if it refuses, the fallback
is a first-boot oneshot that imports it with the console, and the doc's "no MOK" note for boxes whose
key is already enrolled stays valid;preserve: trueover a v2 partition table — curtin's behaviour on a disk whose existing layout does
not match the config is the phase-V gate's job, and if it wipes, the fallback is1bit-install --adopt-datagrown from the live entry's v2 shell, which hasblkidandsfdiskand can write the
seed's storage section with explicit ids after inspecting the disk);- the ROCm subset's completeness — 173 MB is what
lddon the release'sllama-server,ds4and
libggml-hrx.soneeds here; a box with a different GPU path may want more, somkdebsderives the
list from those binaries rather than from a hand-written list; - the ISO repack (
os/v3/mkstick.sh) — extracting a pinned ISO to a partition keeps casper working on
the media it was built for; the gate's phase I proves it, and if extraction is not enough the fallback
isloopbackbooting the ISO file, which needsiso-scan/filename=and a second labelled partition.
The os/v3 tree
Everything in this table is what this page proposes; none of it lands in this PR. The two rows marked
#732 are that PR's files.
| file | what |
|---|---|
pin.txt |
the server ISO exactly (url, size, sha256, volume label, date) and the series; the engine/kernel/ROCm pins stay the release's own |
mkstick.sh |
mkrootfs's replacement: extract the pinned ISO to partition 2, add /1bit/, write the ESP from os/mini's payload, prepare-stick-style identity |
mkdebs.sh |
v2's mkdebs.sh plus 1bit-rocm (subset derived from ldd), 1bit-xrt (Depends), the kernel/modules pair, and the archive-keyring |
seed.sh |
#732: renders autoinstall.yaml + identity from the stick's inputs, check validates a rendered seed (fields, mode, placeholders, and the YAML's structure with PyYAML), selftest proves both directions |
seed-selftest.sh |
#732: the selftest target — good-seed acceptances, 15 refusals with their reasons, and seven structure regressions (no preserve: true, a file:// apt source, an unsubstituted placeholder, a root size the identity does not have, a /data that is not 1BIT-DATA, an md5 hash, an ESP without grub_device); 32 checks, no device |
postinstall |
the nine steps, set -e with the failure trap that keeps the screen |
steps |
the renderer entry points plan, step, failed (v2's os/mini/tui.sh, Apache-noticed copy) |
vmtest-v3.sh, vmtest-install-v3.sh |
phases A/B and I/V, transcripts in /data as v2's do — the host reads the guest's transcript, so no port forwarding decides a verdict |
diag-v3.sh |
boot the installed disk and ask the guest what failed; judges nothing |
Licence
The scripts and this page are Apache-2.0, like the rest of the repository. What the packages carry is in
os/LICENSES.md; the Ubuntu base adds the archive's own licences, and the appliance
package ships the aggregate under /usr/share/licenses/1bit-os/ as v2's does.
</details>
</td></tr>
</table>
…s the documented fallback The owner's 2026-11-01 direction (1bit OS v3 on Puppy, live stick and frugal install, with our kernel) reframes this page rather than replacing it: the medium changes, the design does not - the same ESP chain, the same #709 boot entry, the same #710 install screen, the same seed of identity and the same package content. The Puppy evaluation (docs/os-v3-live-puppy-eval.md, os/v3/puppy/) carries the numbers and the gates; this page now says which plan is the plan and why the Ubuntu plan stays as the fallback: it needs no kernel rebuild, and its userland brings sshd, apt, efivarfs, a normal user and unattended-upgrades for free, where Puppy adds them as packages and runs as root by model.
|
Persistent review updated to latest commit dd9be3d |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: CHANGES
At dd9be3d4. The new "Two plans" framing is a good addition and the reasoning is sound, but the page now makes three present-tense claims about files that do not exist at this head.
What it says vs what is in the branch (git cat-file -e dd9be3d4:<path>):
| path the page points at | at this head |
|---|---|
docs/os-v3-live-puppy-eval.md (line 22, "the evaluation … is") |
missing |
os/v3/puppy/ (line 22, "with its recipe in") |
missing |
os/v3/pin.txt, os/v3/seed.sh, os/v3/seed-selftest.sh (line 51, "The first slice is in the tree") |
missing |
git ls-tree -r --name-only dd9be3d4 | grep -c '^os/v3/' → 0.
The fix is a merge order, not a rewrite. The files are real, just in other PRs:
- #732 adds exactly
os/v3/pin.txt(+33),os/v3/seed-selftest.sh(+152),os/v3/seed.sh(+444); - #739 adds exactly
docs/os-v3-live-puppy-eval.mdandos/v3/puppy/{README.md,build.sh,kernel-puppy.fragment,mk-huge-kernel.sh}.
So either land #732 and #739 before this page, or keep the page order-independent by naming them: "os/v3/pin.txt, seed.sh and seed-selftest.sh land in #732; the Puppy evaluation is #739". Then the sentences are true at every merge position, which is what a design page that will be re-read during the rollout needs. The "31 checks, no device" figure is seed-selftest.sh's and I still cannot run it from here — it is #732's file, so it should be verified there rather than asserted here.
Third time, unchanged: line 475 still lists both firmware packages as 20260319.git217ca6e4-0ubuntu1.1, but linux-firmware-amd-graphics on this box is -0ubuntu3.1 while -amd-misc is -0ubuntu1.1. Split the row or note the two revisions differ.
Everything I verified on earlier heads still stands (base 26.04.1/resolute, kernel 7.3.0-rc4-1bit-perfopt+, XRT 1:2.21.75+dfsg-4, 97 efivars, 10 efibootmgr entries, stale Boot0002 1bit OS USB, ROCm 7.2 G, libhsa 21a66824/5b113248 — all matched this box), and the new section's claim that both plans share the ESP chain, the boot entry, the install screen and the package content is consistent with the rest of the page.
No tprs-ready. Two edits (or the merge order) and this is READY.
…nd split the firmware row Review at dd9be3d, three points, all addressed: - the page pointed at files that are not in this branch in the present tense (docs/os-v3-live-puppy-eval.md and os/v3/puppy/ -> #739; os/v3/pin.txt, seed.sh, seed-selftest.sh -> #732). They are now named with their PRs and the page says plainly that none of it is in this PR, so every sentence is true at any merge order. The '31 checks' figure was #732's file and is now 32 (it grew the ESP/grub_device case), attributed there. - the os/v3 tree table now opens by saying it is the tree this page proposes and that nothing in it lands in this PR. - the firmware row had both split packages on one revision; measured here they are not: linux-firmware-amd-misc 20260319.git217ca6e4-0ubuntu1.1 and linux-firmware-amd-graphics 20260319.git217ca6e4-0ubuntu3.1. Both places (the package-set paragraph and the measured table) now say so.
|
All three points from the 1. Files referenced in the present tense, not in this branch. The fix is the order-independent one you
2. The 3. The firmware row was wrong and is fixed in both places (the package-set paragraph and the measured
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At dfdd8711. Both things I asked for are fixed, and the second one is fixed better than I suggested.
The three present-tense file claims now name their PRs and the page says outright that it stands alone:
- "…the gates table — is
docs/os-v3-live-puppy-eval.md(PR #739, which also carries the recipe in …)"; - "The first slice is
os/v3/pin.txt…,os/v3/seed.shand itsseed-selftest.sh(PR #732, 32 checks, no device; not in this PR either, so this page stands alone at any merge order)".
So the claim is true at every merge position, which is what I asked for, and the count is now 32 — which is exactly what seed-selftest.sh reports (I ran it on #732: seed selftest PASS 32/32). That was the off-by-one I flagged.
The firmware row is split and measured, which is the third time I raised it:
| firmware packages | `linux-firmware-amd-misc` …-**0ubuntu1.1** and `linux-firmware-amd-graphics` …-**0ubuntu3.1**
(two revisions, measured; the first is what carries `amdnpu/17f0_11/npu.sbin.zst`) |
Correct on this box, and the parenthetical explains why they differ rather than leaving a reader to wonder.
Everything I verified on earlier heads still holds (26.04.1/resolute, kernel 7.3.0-rc4-1bit-perfopt+, XRT 1:2.21.75+dfsg-4, 97 efivars, 10 efibootmgr entries, stale Boot0002 1bit OS USB, ROCm 7.2 G, libhsa 21a66824/5b113248), and tools/copyright.py --check is rc 0.
Not verified: the Puppy eval's measurements (that is #739's, and the same caveat applies — the artifacts did not survive the rebuild) and seed-selftest.sh's 32 checks as this page's claim, though I ran that script at #732's head and it passes.
tprs-ready applied.
|
Persistent review updated to latest commit 2205f7d |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At 2205f7df, rebased as the merges ahead of it landed. The author patch is byte-identical to the head I reviewed — patch-id from the merge base is unchanged before and after — so only main arrived in the rebase and my review stands without re-reading.
Nothing new to verify; everything in my earlier verdict on this PR, including what I recorded as not-verified-by-me, applies unchanged at this head.
|
Persistent review updated to latest commit 7443f45 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At 7443f457, rebased as the merges ahead of it landed. The author patch is byte-identical to the head I reviewed (patch-id from the merge base unchanged), so only main arrived and my review stands without re-reading. Nothing new to verify; everything in my earlier verdict, including what I recorded as not-verified-by-me, applies at this head unchanged.
Design doc for engine#712: the installed 1bit OS becomes a headless Ubuntu 26.04 Server, installed
unattended by
autoinstallfrom the same stick that carries the live appliance. Closes nothing yet —the build is
os/v3, the next release, and v2026.44 keeps shippingos/mini.docs/os-v3.mdcovers, in one page each:/1bit/+1BIT-DATA) andthe target (1 GiB ESP,
min(128, max(32, 25%))ext4 root with/booton it and an 8 GiB swapfile,1BIT-DATAfor everything models); fstab by UUID because two1BIT-DATAlabels already bit theinstaller (engine#539);
interactive-sections: [], the disk matched by serial so a stick cannotwipe a machine it was not written for, our repo as
aptprimary withoffline-installfallback, andthe nine
postinstallsteps;Depends:each other),1bit-rocmas the pinnedruntime subset (173 MB + 3.5 MB bitcode, derived from
ldd, not the 7.2 GB SDK), XRT and the AMD NPUfirmware from the archive, the release's own
lemond,1bit-menuon tty1, release check, fans/power,unattended-upgradeswith1bit-kernel-*blacklisted, ssh socket, a normal1bituser;subiquity handoff called out as the one thing the gate must decide;
CONFIG_EFIVAR_FS=m, 97 efivars on the box),efibootmgrin the target, entry created and ordered, stale entries removed,BootOrderprinted, andBootNextset so the reboot lands on the disk with the stick still in;1BIT-DATA(preserve: true, with the exactcarry/no-carry table, ssh host key included); v3 → v3 is
apt;OVMF + writable NVRAM here, so the efivar assertions are real.
Also carries engine#715's runtime rule into the appliance: one pinned
libhsa,/etc/1bit/libhsa.envwith the measured fault-free trio (
HSA_USE_SVM=0,HSA_USERPTR_FOR_PAGED_MEM=0,HRX_ALLOW_NO_SVM=1).Every number in "What is measured now" was measured on the rebuilt strixhalo box (2026-11-01); what is
not measured is listed as the build's risk list (server ISO pin, subiquity's screen handoff,
mokutil --importon stdin,preserve: trueover a v2 table, the ROCm subset's completeness, the ISOrepack).
Design only: no code, no build, nothing else in the tree changes. QEMU/board gates for v3 itself are the
next PR's work.