Skip to content

docs: 1bit OS v3 - the installed machine is an Ubuntu 26.04 Server (engine#712) - #717

Merged
bong-water-water-bong merged 12 commits into
mainfrom
os/v3-doc
Nov 1, 2026
Merged

bong-water-water-bong merged 12 commits into
mainfrom
os/v3-doc

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Design doc for engine#712: the installed 1bit OS becomes a headless Ubuntu 26.04 Server, installed
unattended by autoinstall from the same stick that carries the live appliance. Closes nothing yet —
the build is os/v3, the next release, and v2026.44 keeps shipping os/mini.

docs/os-v3.md covers, in one page each:

  • partition layouts — the stick (ESP + the server ISO's own partition with /1bit/ + 1BIT-DATA) and
    the target (1 GiB ESP, min(128, max(32, 25%)) ext4 root with /boot on it and an 8 GiB swapfile,
    1BIT-DATA for everything models); fstab by UUID because two 1BIT-DATA labels already bit the
    installer (engine#539);
  • autoinstall user-data — interactive-sections: [], the disk matched by serial so a stick cannot
    wipe a machine it was not written for, our repo as apt primary with offline-install fallback, and
    the nine postinstall steps;
  • package set — the kernel/modules pair (versioned, Depends: each other), 1bit-rocm as the pinned
    runtime subset (173 MB + 3.5 MB bitcode, derived from ldd, not the 7.2 GB SDK), XRT and the AMD NPU
    firmware from the archive, the release's own lemond, 1bit-menu on tty1, release check, fans/power,
    unattended-upgrades with 1bit-kernel-* blacklisted, ssh socket, a normal 1bit user;
  • the install screen (os: 1bit-install must show the whole install on screen - progress for every step, nothing silent #710) — one nine-step list spanning subiquity and our steps, with the
    subiquity handoff called out as the one thing the gate must decide;
  • the firmware boot entry (os: 1bit-install registers no firmware boot entry and the live kernel has no efivarfs - the installed disk only boots by firmware fallback #709) — efivarfs measured (CONFIG_EFIVAR_FS=m, 97 efivars on the box),
    efibootmgr in the target, entry created and ordered, stale entries removed, BootOrder printed, and
    BootNext set so the reboot lands on the disk with the stick still in;
  • the upgrade path — v2 → v3 is a reinstall that adopts 1BIT-DATA (preserve: true, with the exact
    carry/no-carry table, ssh host key included); v3 → v3 is apt;
  • the gates — QEMU A/R/I/B retargeted, plus a new V phase (v2 → v3), and the board steps. QEMU has
    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.env
with 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 --import on stdin, preserve: true over a v2 table, the ROCm subset's completeness, the ISO
repack).

Design only: no code, no build, nothing else in the tree changes. QEMU/board gates for v3 itself are the
next PR's work.

bong-water-water-bong added 5 commits October 31, 2026 22:48
…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.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. The ## The os/v3 treetable 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.
  2. 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, mokutil from a curtin chroot, preserve: true over 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.

@bong-water-water-bong bong-water-water-bong added the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Nov 1, 2026
bong-water-water-bong and others added 3 commits October 31, 2026 23:20
…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 bong-water-water-bong removed the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Nov 1, 2026

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) and os/v3/seed.sh with its seed-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.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 7443f45)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

712 - Partially compliant

Compliant requirements:

  • The installed appliance is a full operating system (Ubuntu 26.04 LTS Server)
  • The OS includes signed kernel package, amdgpu/amdxdna, ROCm/HRX runtime, XRT, engine + Lemonade as packages/services
  • The OS includes appliance console, release check, fans/power units, unattended security updates
  • The OS has a normal user with sudo, ssh keys carried over from the stick
  • The OS has a firmware boot entry
  • The live stick remains as the "try it, then install" medium
  • The build is in os/v3 next to os/v2
  • The build is gated by the same QEMU A/R/I/B + board install test

Non-compliant requirements:

  • The OS should autoinstall from the stick (this is covered in the design but not implemented in this PR)

Requires further human verification:

  • The autoinstall functionality from the stick needs to be verified in the actual build environment

539 - Partially compliant

Compliant requirements:

  • An installer is designed to allow live boot onto one internal disk
  • The installer has a signed layout
  • The installer refuses certain actions as specified
  • The installer prints disk's model/size/partition table and waits 10s
  • The installer lays out disk with same sfdisk recipe as build uses for stick
  • The installer ships nvme, ahci, nls_cp437, nls_ascii
  • The installer creates /etc/1bit itself
  • The installer defines say() before first use

Non-compliant requirements:

  • The actual implementation of the installer is not included in this PR (the PR only contains the design doc)

Requires further human verification:

  • The actual installer implementation needs to be verified in the build environment

710 - Partially compliant

Compliant requirements:

  • The install screen shows the whole install on screen with progress for every step
  • The screen has one line per step that flips from pending to running to done with elapsed time
  • The screen shows all required steps including target disk, partition table, ESP, data partition, image written, boot files, SSH/API keys, firmware entry, final verification
  • Every step goes to /data/install.log on both stick and new disk, and to ttyS0
  • Errors stop the screen on failing step with command's output

Non-compliant requirements:

  • The actual implementation of the install screen is not included in this PR (the PR only contains the design doc)

Requires further human verification:

  • The actual install screen implementation needs to be verified in the build environment
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing Implementation Details

The PR is a design document for the OS v3 implementation but lacks actual implementation details. The document describes the intended behavior and structure but does not include the actual code changes needed to implement the installer, the install screen, or the autoinstall process. This makes it difficult to assess the correctness of the implementation without seeing the actual code.

<!--
Copyright 2026 bong-water-water-bong
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
# 1bit OS v3 — the installed machine is an Ubuntu 26.04 Server

## Two plans, and which one is the plan

The owner's direction of 2026-11-01 makes **Puppy** the base of v3, for the live/try stick *and* the
installed system (a frugal install with a persistent save layer), with our kernel and drivers. The
evaluation — sizes, the glibc ceiling, the kernel config gap, the package inventory, the build recipe and
the gates table — is `docs/os-v3-live-puppy-eval.md` (**PR #739**, which also carries the recipe in
`os/v3/puppy/`; neither is in this PR).

**If that evaluation's gates pass, the Puppy plan below is v3.** It is a different *medium* with the
same *design* as everything on this page: the same ESP chain (shim → our MOK-signed grub → our
MOK-signed kernel), the same firmware boot entry (#709), the same install screen (#710), the same seed
of identity (user, keys, which disk), and the same package *content* (our kernel and modules, the
runtime, the engine, Lemonade, the units). What changes is how the system is laid out at boot: Puppy's
initrd layers a read-only SFS under a save file instead of installing a root filesystem, which is also
the answer to #706.

**The Ubuntu Server `autoinstall` plan on this page is the documented fallback**, and it stays the
reference for the parts both plans share. It is the fallback for two measured reasons: it has no
dependency on a kernel rebuild (the Puppy plan needs `os/v3/puppy/kernel-puppy.fragment` built in, and
that is one kernel gate away), and its userland brings sshd, apt, efivarfs, a normal user and
`unattended-upgrades` for free, where the Puppy plan adds them as packages and runs as root by model.
Neither plan is a redesign of the other; switching is a change of medium.

## The Ubuntu plan (the fallback)

This is the design for engine#712. Today one image serves both roles: the live stick and the disk it
installs to are the same BusyBox initramfs, so the installed machine has no package manager, no users,
no updates and an empty efivarfs (engine#712, engine#709). v3 keeps that image as the *live* medium and
makes the **installed** machine a real OS: Ubuntu 26.04 LTS Server, installed unattended by `autoinstall`
from the same stick, carrying our kernel, our drivers, our runtime, the engine, Lemonade and the
appliance units as packages that `apt` updates.

The first slice is `os/v3/pin.txt` (the pinned server ISO), `os/v3/seed.sh` and its `seed-selftest.sh`
(**PR #732**, 32 checks, no device; not in this PR either, so this page stands alone at any merge
order). Everything after the seed — `mkstick.sh`, `mkdebs.sh`,
`postinstall`, `steps`, the vmtest scripts — is design. `os/mini` keeps shipping in v2026.44, and
engine#712 says v3 is the next release, not the Sunday one. What *is* measured is in
[What is measured now](#what-is-measured-now) — most of it on the Strix Halo box this design was written
on, which is itself the reference install: it runs Ubuntu 26.04.1 with our kernel, our out-of-tree
modules, TheRock's ROCm, the distro's XRT, the engine and Lemonade, and it serves HRX and the NPU.

## What changes, and what stays

| | today (`os/mini`) | v2 (`os/v2`, in tree, not shipped) | v3 |
|---|---|---|---|
| live medium | BusyBox initramfs, everything in RAM | Ubuntu rootfs squashfs + our debs | **unchanged**: the `os/mini` image is the try-it medium |
| installed system | the same initramfs on the ESP + a `/data` partition | squashfs unpacked to ext4, our debs preinstalled | **Ubuntu 26.04 Server, installed by subiquity `autoinstall`** |
| updates | reflash the stick | `apt` from `1bit.gg/apt` | `apt` from `1bit.gg/apt`, unattended security updates on |
| users | root only, keys from `/data/ssh` | root only, keys from `/data` | **`onebit` with sudo**, keys carried from the stick, root locked |
| firmware entry | none (engine#709) | `efibootmgr -c` when it exists | **created, ordered, stale entries removed** (engine#709) |
| efivarfs | absent (module never staged, engine#709) | present (`CONFIG_EFIVAR_FS=m`, systemd loads it) | present, and a `release-check` row for it |
| console | BusyBox shell + `1bit-menu` | `1bit-menu` on tty1, autologin | `1bit-menu` on tty1 as a unit, ssh and ttyS0 stay plain |
| headless | yes, but no server software | yes | **yes, and it is a server**: sshd, apt, users, `python3`, journald, `unattended-upgrades` |

The live side deliberately does not move. `os/mini` has passed the QEMU A/R/I/B gate and the owner's
board test for v2026.44; rewriting the try-it medium in the same release that rewrites the installed
machine would put both at risk and prove less. The stick gains one partition and one menu entry.

## The stick

Three partitions, the same shape as v2's medium (`os/v2/mklive.sh`) so `1bit-install`'s refusals, the
`prepare-stick.sh` checks and the gates keep working:

| # | size | fs | label | what |
|---|---|---|---|---|
| 1 | 512 MiB | FAT32 | `1BIT-OS` | shim, our MOK-signed grub, `1bit-os.efi` (the live appliance, `os/mini` unchanged), `grub.cfg` |
| 2 | `ISO size + 1 GiB` | ext4 | the server ISO's own volume label | the Ubuntu 26.04 Server ISO unpacked, plus `/1bit/` — the seed, our signed repo, the MOK, the install log |
| 3 | the rest | ext4 | `1BIT-DATA` | models, Lemonade's cache and config, `hrx-jit`, NPU sets, `ssh/` — copied to the target's `/data` |

Partition 2 keeps the ISO's own volume label on purpose: that label is how casper finds its squashfs and
mounts it as `/cdrom`, which is where our seed and our repository have to be visible. Renaming it (to
`1BIT-INSTALL`, say) would mean a `findiso=`/`iso-scan` kernel option and a casper that ignores the medium
— more moving parts for a cosmetic name. `os/v3/pin.txt` records the ISO's URL, size, sha256 and volume
label next to the Ubuntu snapshot timestamp that `mkrootfs.sh` already pins, so the medium is
reproducible from that file alone.

`/1bit/` on partition 2:

/1bit/autoinstall.yaml the seed (generated at stick-write time, below)
/1bit/repo/ our signed apt repository: Release, Release.gpg, InRelease, *.deb
/1bit/keys/1bit-archive-keyring.gpg
/1bit/mok/MOK-Kernel.der the key the kernel and the out-of-tree modules are signed with
/1bit/identity username, password hash, hostname, target disk serial, ssh keys (root 0600)
/1bit/install.log written by the install, on both media (#710)


### The grub menu

Two entries; the default is the live appliance, so a stick left in a machine still comes up as today.

menuentry "1bit OS (live)" {
linuxefi /1bit-os.efi
}
menuentry "Install 1bit OS onto this machine" {
search --no-floppy --label "" --set=root
linux /casper/vmlinuz autoinstall "ds=nocloud;s=/cdrom/1bit/"
--- console=tty1 console=ttyS0,115200
initrd /casper/initrd
}


`autoinstall` plus a NoCloud seed in the medium's own root (`s=/cdrom/1bit/`) is subiquity's documented
unattended path; the `console=` pair is what puts the same transcript on the screen (#710) and on the
serial line the QEMU gate reads. `1bit-os.efi` stays a single-file EFI stub, so the live entry is the
byte-identical payload `os/mini/mkimage.sh` writes today.

### `prepare-stick.sh` grows an identity

The seed is per-stick, not per-release: it names the machine's user, password hash, hostname and target
disk. `prepare-stick.sh` (already the tool that writes `authorized_keys` and mints Lemonade's API key)
gains:

```sh
prepare-stick.sh /dev/sdX --ssh-pubkey ~/.ssh/id_ed25519.pub \
    --user onebit --hostname 1bit-strixhalo --disk-serial YMA62T0KA2417407NP \
    --model ~/models/Qwen3-0.6B-Q4_K_M.gguf

It writes /1bit/identity (0600, root), hashes the password with openssl passwd -6, and renders
/1bit/autoinstall.yaml from the template below, substituting the identity and the disk serial.
--disk-serial is required for a destructive install: the storage config matches that serial, so a stick
written for one machine cannot wipe another, and a re-run finds the same disk. --any-disk (largest disk)
exists for the QEMU gate and prints a warning that the stick is not machine-bound.

The installed layout

# size fs label contents on v2 → v3
1 1 GiB FAT32 1BIT-OS Ubuntu's shim + grub (Microsoft- and Canonical-signed), grub.cfg, /boot/efi created
2 64 GiB ext4 1BIT-ROOT the system, /boot (kernels and initramfs), /var, /home, an 8 GiB /swap.img created
3 the rest ext4 1BIT-DATA models, Lemonade's cache and config, hrx-jit, NPU sets, keys — /data adopted, never formatted

Numbers: 1 GiB is the Ubuntu default and the measured size of this box's ESP (1.1 GiB, 6.4 MB used, so
two kernels and their initramfs fit with room); 64 GiB for the root because a base Ubuntu 26.04 install
plus the 180 MB runtime below, its journal and /var fit in a tenth of that, and because the rest of the
disk belongs to the models — a fixed number, not a percentage, so the same seed gives the same table on
any disk (size: -1 on partition 3 takes the remainder). No swap partition: Ubuntu's own /swap.img on the root
filesystem keeps the partition table to what the appliance needs, and it is the image unattended-upgrades
and hibernate-free servers already run.

/boot is on the root filesystem, not its own partition: update-initramfs and update-grub then work
on any kernel package without a size limit, and the ESP only holds the boot chain (v2's install.sh
already does this, and its grub entry searches 1BIT-ROOT for /boot).

/data as partition 3 is the one layout decision carried over from v2 unchanged, for the reason v2
documents: models are hundreds of GiB and must outlive the OS. Here it also carries the machine's
identity across a v2 → v3 reinstall (below).

fstab by UUID, not by label. v2 mounts LABEL=1BIT-* because its image is generic. That bit the
installer: with the stick in the machine there are two 1BIT-DATA partitions and findfs may answer
with the wrong one (engine#539, measured). v3 generates the target's /etc/fstab at install time from the
UUIDs it just created, and uses the labels only for the installer's own discovery.

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:

  • packages: is only the archive side. openssh-server and efibootmgr/mokutil are the three
    tools engine#709 found missing; python3-minimal turns release-check's sealed-sig row from SKIP
    into a real check (the c18 image SKIPs it for exactly that reason, measured in the gate log);
    unattended-upgrades is the update path.
  • Our packages come from /1bit/repo, not from packages:, in postinstall, because a deb install
    must run after the base is unpacked and before the first boot, and because it must be visible in the
    install screen's step list.
  • fallback: offline-install is what lets a machine with no network install at all: curtin then takes
    the stock packages from the ISO's own pool instead of aborting at apt update. Our own packages never
    depend on the network, because they are on the medium.
  • preserve: true on partition 3 is the v2 → v3 path (see Upgrade). It is also
    what makes the installer idempotent: a second run over a v3 machine keeps /data.
  • Not used, deliberately: source: (we install the stock server variant), drivers:/codecs:
    (they pull third-party repositories and prompts), kernel-crash-dumps:, snaps:, network:
    (netplan's DHCP default is right, and a fixed address belongs in the console menu, not the seed).

postinstall — our steps

Runs in the target chroot (curtin in-target), so every path is the target's except /cdrom. Its steps
are the screen's steps 3–8, in this order (1 and 2 are the seed's identity line and curtin's own base
install):

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:

  1. 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/efivars is
    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, where efibootmgr works, and asks for =y
    in the kernel config anyway so the next BusyBox image cannot regress it.
  2. efibootmgr is 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.
  3. The entry is created, ordered and cleaned, and the resulting BootOrder is 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 /cdrom and 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 --import reading 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: true over 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 is 1bit-install --adopt-data grown from the live entry's v2 shell, which has blkid and sfdisk and can write the
    seed's storage section with explicit ids after inspecting the disk);
  • the ROCm subset's completeness — 173 MB is what ldd on the release's llama-server, ds4 and
    libggml-hrx.so needs here; a box with a different GPU path may want more, so mkdebs derives 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
    is loopback booting the ISO file, which needs iso-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.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit dd9be3d

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md and os/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.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

All three points from the dd9be3d review are addressed at dfdd871.

1. Files referenced in the present tense, not in this branch. The fix is the order-independent one you
suggested — the page names the PRs instead of asserting presence:

2. The os/v3 tree table now opens with "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."

3. The firmware row was wrong and is fixed in both places (the package-set paragraph and the measured
table). Measured here, the two split packages are not on one revision:

linux-firmware-amd-misc      20260319.git217ca6e4-0ubuntu1.1   (Firmware for AMD NPU accelerators)
linux-firmware-amd-graphics  20260319.git217ca6e4-0ubuntu3.1

tools/copyright.py --check rc 0. Nothing else changed; the measured table you spot-checked is untouched
except that row.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.sh and its seed-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.

@bong-water-water-bong bong-water-water-bong added the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 2205f7d

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 7443f45

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bong-water-water-bong
bong-water-water-bong merged commit 7fbef0f into main Nov 1, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the os/v3-doc branch November 1, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review effort 3/5 tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant