Skip to content

os/v3: Puppy as the base - the numbers, the kernel fragment, the build recipe - #739

Merged
bong-water-water-bong merged 13 commits into
mainfrom
os/v3-puppy-eval
Nov 1, 2026
Merged

bong-water-water-bong merged 13 commits into
mainfrom
os/v3-puppy-eval

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

The owner's direction (2026-11-01): 1bit OS v3 on Puppy, for both roles (live/try stick and frugal
install on the NVMe with a persistent save layer), headless, with our kernel and drivers. This PR is
the evaluation with the numbers, the recommendation, and the build recipe — nothing is installed on
strixhalo and nothing touches a device.

docs/os-v3-live-puppy-eval.md — verdict: adopt, conditional on four blockers, each small and
each with a measured path. Puppy already has the two things our BusyBox image cannot grow (a package
manager, and a persistent layer on the stick that is #706) and its initrd already implements save-file
load/upgrade/validate; what it lacks is our kernel, and that turned out to be a config gap of about
fifteen =y symbols, not a fork.

Measured today (strixhalo + QEMU):

number
Puppy noble64 (woof-CE CI artifact) ISO 1.25 GB, puppy SFS 411 MB, zdrv 114 MB, 1.3 GB unpacked
its userland python3 3.12 ✓, dpkg + PETget ✓, no apt binary, efibootmgr ✓, no mokutil, no sshd, glibc 2.39
its EFI bootx64.efi + grubx64.efi + mmx64.efi (shim + grub + MokManager)
persistence pupmode 5/12/13, save file or folder (the initrd's own machinery)
our binaries (c18 tarball, readelf -V) 1bit GLIBC_2.43, lemond GLIBC_2.43, llama-server 2.34
our kernel as a Puppy kernel package huge-7.3.0-rc4-1bit-perfopt+.tar.zst 111 MB: vmlinuz 12 MB + zdrv 100 MB, 3819 modules, amdxdna/ec_su_axb35 signed, firmware amdgpu/amdnpu/rtl_nic
Puppy's initrd on our kernel kernel boots, initrd stops at 2.1 s: /puppy_upup64n_24.04.sfs not found

The last row is the key finding: our kernel is Ubuntu-shaped (BLK_DEV_SR, ISO9660_FS, SQUASHFS,
OVERLAY_FS, BLK_DEV_LOOP, EFIVAR_FS, FAT/VFAT, EXT4, USB storage, HID all =m) and Puppy's initrd has to
mount the medium and layer the save file before any module can load. Puppy's own stock 6.8.12 has
every one of them =y. The glibc row is the second: only a 26.04 (resolute) Puppy can run 1bit and
lemond, and woof-CE's CI builds only 24.04 and 22.04 — so a resolute Puppy is ours to build.

os/v3/puppy/mk-huge-kernel.sh — our kernel as woof-CE's kernel package, from the release deb tree:
vmlinuz-<kver> + a zdrv SFS with the module tree, the firmware we need and a marker at
etc/1bit/kernel; refuses a module for another kernel or an unsigned one. A kernel bump is this script
plus a rebuild.

os/v3/puppy/kernel-puppy.fragment — the measured =y delta, with our current value beside each
line. A fragment the weekly kernel build appends before olddefconfig, not a patch: perfopt and the
driver decisions stay.

os/v3/puppy/build.sh — woof-CE's CI recipe in a throwaway container (12 GB / 4 CPUs cap, no host
packages, no host devices), our kernel dropped into kernel-kit/output, outputs to a host directory. It
also records the two things woof-CE assumes and does not say: merge2out refuses to run outside a
running Puppy unless GITHUB_ACTIONS is set, and 3builddistro silently downloads a stock Ubuntu
kernel
when kernel-kit/output is empty — which is exactly the requirement the owner added.

The doc's gates table says plainly what is green (size, feature inventory, the kernel package, the config
gap), what is red (boot on our kernel until the fragment is built) and what is still unrun (Secure Boot
with the swapped chain, lemond+1bit serve in the VM, the persistence round trip, boot time and idle
RAM). The resolute64 ISO build is running as this is filed; the recipe is proven through
merge2out + 0setup and the log is kept, but no finished ISO is claimed here.

docs/os-v3.md (#717) gets the matching change: Puppy-based v3 as the plan if these gates pass, Ubuntu
Server autoinstall kept as the documented fallback and as the reference for what both plans share (the
ESP chain, #709's boot entry, #710's install screen, the seed's identity, the package set's content).

bong-water-water-bong added 2 commits November 1, 2026 00:25
… the build recipe

The owner's direction (2026-11-01): 1bit OS v3 on Puppy, for the live stick and the frugal install, with
our kernel. docs/os-v3-live-puppy-eval.md is the measurement and the recommendation (adopt,
conditional); os/v3/puppy/ is the recipe.

Measured on strixhalo and in QEMU today:
- Puppy noble64 (woof-CE CI artifact): ISO 1.25 GB, puppy SFS 411 MB, zdrv 114 MB, 1.3 GB unpacked;
  python3 3.12, dpkg + PETget and no apt binary, efibootmgr present, no mokutil, no sshd, glibc 2.39;
  a shim+grub+MokManager EFI chain; pupmode 5/12/13 with save file or folder (that is #706's answer).
- our binaries: 1bit and lemond need GLIBC_2.43, llama-server 2.34 - so only a 26.04-base Puppy can run
  the appliance, and woof-CE has a resolute64 recipe (not in its CI matrix).
- our kernel as a Puppy kernel package: huge-7.3.0-rc4-1bit-perfopt+.tar.zst 111 MB (vmlinuz 12 MB +
  zdrv 100 MB, 3819 modules, amdxdna and ec_su_axb35 signed, firmware amdgpu/amdnpu/rtl_nic), built by
  os/v3/puppy/mk-huge-kernel.sh from the release deb tree.
- booting Puppy's initrd on that kernel: the kernel boots, the initrd stops at 2.1 s with
  '/puppy_upup64n_24.04.sfs not found' - our kernel has BLK_DEV_SR/ISO9660/SQUASHFS/OVERLAY/LOOP as
  modules and Puppy's initrd must mount the medium before any module loads. Puppy's own kernel has all
  of them =y; os/v3/puppy/kernel-puppy.fragment is the measured delta (fifteen =y symbols), a config
  fragment the weekly kernel build appends, not a patch.

os/v3/puppy/build.sh is woof-CE's CI recipe in a throwaway container with our kernel dropped into
kernel-kit/output, plus the two things woof-CE assumes and does not say: merge2out needs
GITHUB_ACTIONS set outside a running Puppy, and 3builddistro silently downloads a stock kernel when
kernel-kit/output is empty.

The gates table in the doc says which are green (size, feature inventory, kernel package, the config
gap) and which are red or unrun (boot on our kernel, Secure Boot with the swapped chain, lemond/1bit in
the VM, persistence round trip, boot time and idle RAM).
…build dies right after merge2out)

set -o pipefail makes the yes|merge2out pipeline take yes's 141 when merge2out exits, so the build
stopped with no error and no next stage - attempt 4 of the build. The pipeline's status is now
merge2out's.
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 81617e0)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

706 - Partially compliant

Compliant requirements:

  • None

Non-compliant requirements:

  • Grow /data partition to the end of the device on first boot of a live stick
  • Use sgdisk/parted + resize2fs to expand the partition
  • Support ext4 online growth
  • Write the result into /data/boot.log
  • Update the release check to run chat-npu on the smallest NPU entry when space allows

Requires further human verification:

  • The PR does not include any code for expanding the /data partition or updating the release check behavior

717 - Partially compliant

Compliant requirements:

  • Design doc for 1bit OS v3 that becomes a headless Ubuntu 26.04 Server
  • Document partition layouts for both stick and target
  • Document autoinstall user-data with interactive-sections: [] and disk matching by serial
  • Document package set including kernel/modules pair, 1bit-rocm, XRT, AMD NPU firmware
  • Document the install screen with nine-step list spanning subiquity and our steps
  • Document firmware boot entry with efivarfs, efibootmgr, and BootNext
  • Document upgrade path from v2 to v3 and v3 to v3
  • Document gates including QEMU A/R/I/B retargeted and new V phase

Non-compliant requirements:

  • None

Requires further human verification:

  • None

709 - Partially compliant

Compliant requirements:

  • Build kernel with CONFIG_EFIVAR_FS=y (or module in initramfs)
  • Ship efibootmgr in the image
  • 1bit-install creates a 1bit OS boot entry for the target disk's ESP
  • Put the boot entry first in BootOrder
  • Set BootNext to it for the first reboot
  • Remove stale entries whose target file no longer exists
  • Print the resulting BootOrder on screen
  • Installer's last screen says "remove the stick, the machine reboots into the installed system in N s" and does the reboot itself

Non-compliant requirements:

  • None

Requires further human verification:

  • None
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Build Root Validation

The build script validates that the build root is not mounted with nodev or noexec options, but it only checks for these options in the mount options string. It does not ensure that the build root is actually a filesystem that supports device nodes and executables, which is critical for the build process. This could lead to builds failing in environments where the mount options are not properly checked or where the filesystem type itself is not suitable.

build_root=${BUILD_ROOT:-$HOME/wt/1bit-puppy-build}
mkdir -p "$build_root"; build_root=$(cd "$build_root" && pwd)
mnt_opts=$(findmnt -T "$build_root" -no OPTIONS 2>/dev/null || true)
case ",$mnt_opts," in
*,nodev,* | *,noexec,*)
    printf 'build: REFUSED: %s is mounted %s; the build needs device nodes and executables there\n' \
        "$build_root" "$mnt_opts" >&2
    exit 1
    ;;
esac
Module Verification

The script verifies that modules are built for the correct kernel version and are signed, but it does not check if the modules are compatible with the specific hardware or driver requirements of the 1bit engine. This could lead to modules being accepted that are not suitable for the target hardware, potentially causing runtime issues or system instability.

# every out-of-tree module must be this kernel's and signed, or the appliance boots without the NPU and
# without its fans (the os/mini/mkimage.sh lesson, asserted here for the Puppy zdrv)
updates=$stage/lib/modules/$kver/updates
unsigned=""
mismatch=""
if [ -d "$updates" ]; then
    for ko in "$updates"/*.ko "$updates"/*.ko.zst; do
        [ -e "$ko" ] || continue
        magic=$(modinfo -F vermagic "$ko" 2>/dev/null | awk '{print $1}')
        [ "$magic" = "$kver" ] || mismatch="$mismatch $(basename "$ko"):$magic"
        signer=$(modinfo -F signer "$ko" 2>/dev/null)
        [ -n "$signer" ] || unsigned="$unsigned $(basename "$ko")"
    done
fi
[ -z "$mismatch" ] || die "modules for another kernel:$mismatch"
[ -z "$unsigned" ] || die "unsigned modules:$unsigned (Secure Boot refuses them at load)"
Kernel Config Fragment

The kernel config fragment is critical for ensuring that Puppy can boot with the 1bit kernel. However, the fragment does not include any validation or verification steps to ensure that all the required configurations are correctly applied. If any configuration is missing or incorrect, it could lead to boot failures or unexpected behavior.

## What was measured, and how

| build | how | result |
|---|---|---|
| Puppy **noble64** (Ubuntu 24.04 base) | the woof-CE CI artifact `ubuntu-noble64` run 38837834080 (`upup64n-24.04.iso`), downloaded with `gh run download` | boots to the first-run wizard in QEMU; the numbers below are this image |
| Puppy **resolute64** (Ubuntu 26.04, `DISTRO_NAME='ResolutePup64'`) | `os/v3/puppy/build.sh` — woof-CE CI's own recipe in a throwaway container (12 GB / 4 CPUs), our kernel dropped into `kernel-kit/output` | see [The build](#the-build-and-where-it-stands); this is the only base our binaries can run on |
| our **huge kernel** | `os/v3/puppy/mk-huge-kernel.sh` from the 7.3.0-rc4-1bit-perfopt+ deb tree | `huge-7.3.0-rc4-1bit-perfopt+.tar.zst` 111 MB: vmlinuz 12 MB + zdrv 100 MB, **3819 modules**, `amdxdna.ko` and `ec_su_axb35.ko` both signed, firmware amdgpu/amdnpu/rtl_nic |
| Puppy's initrd with **our** kernel | QEMU, `-kernel vmlinuz-7.3.0-rc4-1bit-perfopt+ -initrd initrd.gz`, the ISO as CD | the kernel boots (2.1 s) and Puppy's initrd stops: `*** /puppy_upup64n_24.04.sfs not found` → [Blocker 1](#blocker-1-the-kernel-config) |

## 1. Size and memory, against our initramfs

| | our c18 initramfs | Puppy noble64 (24.04) |
|---|---|---|
| medium | `1bit-os.img.zst` **397 MB**; the single EFI file **106 MB** | ISO **1,245,708,288 B (1.25 GB)** |
| the OS itself | kernel + initramfs, everything in RAM | `puppy_upup64n_24.04.sfs` **411,115,520 B (411 MB)**, `zdrv` 114 MB, `vmlinuz` 17.7 MB, `initrd.gz` |
| unpacked root | ~106 MB (initramfs) | **1.3 GB** extracted |
| package manager | none | `dpkg` + Puppy's PETget; **no apt** in noble64 (ResolutePup64's notes say apt/Synaptic — see [Blocker 4](#blocker-4-the-2604-base-and-what-it-carries)) |
| update story | reflash the stick | new SFS + keep the save layer; apt where the recipe has it |
| **boot to the first interactive screen** (QEMU, 2 vCPU, 2 GiB, serial timestamped from QEMU start) | **24.5 s** — the "1bit OS" banner and the menu | **108.8 s** — Puppy's first-run wizard (its own stock kernel; the wizard is interactive, not a shell) |
| RAM at idle | not measured here (no `free` in the c18 gate transcript) | not measured headless: the wizard takes the console before a shell exists (see [Not measured](#not-measured)) |

Size and time are the honest trade: **+850 MB on the stick, +1.2 GB on the installed disk, and +84 s
to the first screen** (24.5 s → 108.8 s, measured on the same QEMU with the same timestamping) for a

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 7bedbc3

QEMU, 2 vCPU, 2 GiB, a serial tee that timestamps every chunk from QEMU start:
- the c18 image booted as a USB stick (-device usb-storage, which the init requires: it refuses a
  non-removable disk) reaches its banner and menu at 24.5 s;
- Puppy noble64 on its own stock kernel reaches its first-run wizard at 108.8 s.
So the honest trade grows by one line: +84 s to the first screen. Idle RAM stays unmeasured for both
(the c18 transcript has no free, Puppy's wizard owns the console before a shell exists).
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 118467f

bong-water-water-bong added 2 commits November 1, 2026 00:41
…asured: overlay-on-overlay)

3builddistro mounts an overlay for each petbuild chroot; inside a container the upper/work dirs would sit
on Docker's overlay rootfs, which the kernel refuses ('mount: ... bad superblock on petbuild'), the
chroot then has no bash and the build stops at busybox. The build root is now a host directory
(BUILD_ROOT, default a mktemp under /tmp) bind-mounted at /work, with woof-CE copied into it, so the
overlay upperdir/workdir are on ext4.
…ed as it is

Attempt 5 is the informative one: 0setup, 1download (the 26.04 package set) and 2createpackages all
green, then 3builddistro stops in the petbuild busybox chroot because inside Docker the overlay upperdir
would sit on Docker's overlay rootfs ('mount: ... bad superblock on petbuild') and the chroot is empty.
The fix (build in a host bind mount) is in os/v3/puppy/build.sh and attempt 6 runs it; G1 says 'recipe
proven through 2createpackages, ISO pending' rather than implying a build that does not exist.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Preparing review...

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit dd73480

…zdrv by script)

README.md for the recipe: what each file is, the six-step kernel bump end to end (build with the fragment,
build and sign the out-of-tree modules, stage the deb tree, mk-huge-kernel.sh, build.sh, re-gate), the two
silent naming rules (the kver comes out of huge-<kver>.tar.*; the zdrv is where the modules live at boot
and why modules.dep is built at packaging time), why the fragment exists (the measured 2.1 s initrd stop),
and what the medium is in one paragraph. The fragment check loops over the fragment's own 20 symbols
instead of a hand-written list, so the doc cannot drift from the file.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 8625b73

@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 dd734809 (+672, docs + os/v3/puppy/ recipe only: docs/os-v3-live-puppy-eval.md +248, README.md +112, build.sh +95, kernel-puppy.fragment +55, mk-huge-kernel.sh +162).

This is the evaluation #717's new section points at, and it has the property an evaluation needs: it declares its blocker instead of burying it. Blocker 1 is a kernel-config gap, quoted with the actual failure (*** /puppy_upup64n_24.04.sfs not found when Puppy's initrd is given our kernel), and the base line it draws — noble64 (24.04) works but cannot run our binaries, resolute64 (26.04) is the only base that can — is exactly the constraint that should decide the question rather than the ISO size.

bash -n clean on build.sh and mk-huge-kernel.sh; kernel-puppy.fragment is a normal CONFIG_* fragment (20 entries).

Not verified, and I want to be plain about it: every measurement row. The artifacts it reports are not on this box any more — upup64n-24.04.iso (from woof-CE CI run 38837834080), the huge-7.3.0-rc4-1bit-perfopt+.tar.zst (111 MB, 3819 modules), the QEMU boot timings and the sfs-not-found transcript were produced in a container and did not survive the rebuild, so I cannot re-run or even re-hash them. The gates table is the author's. What I can say is that the doc is specific enough to be re-run by anyone with gh run download and a QEMU, and that it names its own failure rather than asserting success — which is the difference between an evaluation and a proposal.

Nothing here touches a shipped path (os/v3/puppy/ is not referenced by mkimage.sh, prepare-stick.sh or any workflow), so the blast radius of merging it is documentation plus a recipe that runs in a throwaway container.

tprs-ready applied. Note for #717: this PR carries the os/v3/puppy/ tree and this eval file that its page already cites, so #717 becomes accurate the moment this lands.

@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 added 2 commits November 1, 2026 01:08
…dev here)

Attempt 6 got past the petbuild overlays and died in debootstrap: 'cannot create ... test-dev-null ...
mounted with noexec or nodev', because the host build root was under /tmp and /tmp on this box is
tmpfs,nodev - debootstrap needs a usable device node in its target. BUILD_ROOT now defaults to
$HOME/wt/1bit-puppy-build on ext4, and build.sh refuses a nodev/noexec build root before any download.
Seventh trap added to the eval's table.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 632fdea

bong-water-water-bong pushed a commit that referenced this pull request Nov 1, 2026
…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 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 632fdea2, which moved past the head I reviewed — the delta is the Puppy README (+117, now carrying the full Apache-2.0 header) plus small build.sh changes and a line in the eval doc.

Re-checked at this head: tools/copyright.py --check rc 0 (the README had no notice before, so that was the missing piece), bash -n os/v3/puppy/build.sh clean.

Everything from my earlier review stands: this is the evaluation #717 cites, with os/v3/puppy/{README.md,build.sh,kernel-puppy.fragment,mk-huge-kernel.sh} and the eval doc, and it declares its blocker (the kernel-config gap, quoted with the real *** /puppy_upup64n_24.04.sfs not found output) rather than asserting success. Nothing here is on a shipped path — mkimage.sh, prepare-stick.sh and the workflows do not reference os/v3/puppy/ — so the blast radius is documentation plus a recipe that runs in a throwaway container.

Not verified: every measurement row. The woof-CE ISO, the huge-7.3.0-rc4-1bit-perfopt+.tar.zst and the QEMU transcripts were produced in a container and did not survive the rebuild, so the gates table remains the author's — it is specific enough (gh run download, QEMU invocations) to be re-run by anyone.

tprs-ready applied.

…4 numbers)

woof-CE attempt 7 went through 0setup, 1download, 2createpackages and every 3builddistro stage up to
mk_iso.sh, with our kernel tarball taken from kernel-kit/output: sandbox3/rootfs-complete is 1.5 GB,
devx/nlsx/docx SFS exist, and the ISO wrapper is the only thing that failed (mkdosfs absent;
/dev/loop-control absent). The frugal install - the installed mode the owner asked for - is those SFS
files on a partition, so no ISO is needed for it.

Measured on the built resolute64 (Ubuntu 26.04) rootfs, the base the appliance would run on: glibc up to
GLIBC_2.43 (exactly our binaries' floor, where noble64's 2.39 cannot run 1bit or lemond), python3 + dpkg
+ bash + curl + efibootmgr present, and **apt, mokutil and sshd absent** - so apt has to be shipped if
'updates from the Ubuntu feed' is the promise (the recipe's own notes claim apt/Synaptic; the built
rootfs says otherwise). /lib/modules is empty in the rootfs by design: the modules come from the zdrv.

G1 is now stated as payload green / ISO wrapper blocked on two container facilities; build.sh gains
dosfstools and an optional LOOP_DEVICE pass-through.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit a992767

@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 a9927679. The delta is an improvement in exactly the direction I praised: the evaluation now reports measured failures instead of recipe claims —

  • the package-manager row corrected against the built rootfs ("the recipe's own notes claim apt/Synaptic; the built rootfs has /usr/bin/apt absent — measured"), which turns a row that said "nothing if the notes hold" into "ship apt if updates from the Ubuntu feed is the promise";
  • attempt 7 documented with its real errors (mkdosfs: command not found, losetup: /dev/loop16: failed to set up loop device) and their fixes (dosfstools in the container, LOOP_DEVICE=1 to pass /dev/loop-control), plus the fact that it got through 0setup/1download/2createpackages and every stage of 3builddistro up to mk_iso.sh and produced the payload.

build.sh +3 −1 is a small fix; tools/copyright.py --check was rc 0 at the previous head and the README header is unchanged.

Not verified: the attempt-7 transcript and the rootfs contents — the container artifacts did not survive the rebuild, so these rows remain the author's measurements, which the page itself frames as failures rather than successes.

tprs-ready stands.

bong-water-water-bong added a commit that referenced this pull request Nov 1, 2026
…ngine#712) (#717)

* docs: 1bit OS v3 - the installed machine is an Ubuntu 26.04 Server (engine#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.

* docs/os-v3: the board gate sentence says what is provable, and the headers package is on demand

* docs/os-v3: reflow the board gate paragraph

* docs/os-v3: one root size in both places, and no invented package count on the install screen

* docs/os-v3: postinstall's rows are the screen's steps 3-8, so the gate's 1-9 is one list

* docs/os-v3: our repo is never a persistent apt source - a file:///cdrom 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.

* docs/os-v3: the account is onebit, and the medium's pin is measured not 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.

* docs/os-v3: Puppy is the plan if its gates pass; Ubuntu autoinstall is 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.

* docs/os-v3: name the PRs that carry the files this page references, and 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.

---------

Co-authored-by: bong-water-water-bong <[email protected]>

@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 a9927679 — verdict unchanged, posted again because it is the head in question. The Puppy evaluation and its recipe; tools/copyright.py --check rc 0, build.sh parses, and the doc reports measured failures (missing mkdosfs, no /dev/loop-control) rather than claiming success. The measurement rows remain the author's — the container artifacts did not survive the rebuild.

@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 a9927679 — this is the head my verdict already sits on (unchanged, build green). Re-stated so there is no doubt about which head the gate refers to.

The PR is the Puppy evaluation plus os/v3/puppy/ recipe: tools/copyright.py --check rc 0, bash -n clean on build.sh and mk-huge-kernel.sh, and the page reports measured failures (missing mkdosfs, no /dev/loop-control) rather than asserting success. Not verified: the measurement rows themselves — the woof-CE ISO, the huge-kernel tarball and the QEMU transcripts did not survive the box rebuild, so they remain the author's, which the page frames honestly.

tprs-ready stands.

@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 2e6d0d24 — the live head. The author patch is byte-identical to the content I reviewed (patch-id from the merge base unchanged across the rebase), so only main arrived and the verdict carries rather than being re-derived.

The Puppy evaluation plus its recipe: copyright rc 0, bash -n clean, and the page reports measured failures rather than asserting success. Its measurement rows remain the author’s — the container artifacts did not survive the rebuild.

Nothing new to verify; everything in my earlier verdict on this PR, including what I recorded as not-verified-by-me, applies here unchanged.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 2e6d0d2

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit ab60fb9

@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 ab60fb98 (author patch-id fd8f7f7d6c5d). Clean rebase onto main — the author diff is patch-identical to the content I reviewed, so my verdict carries. The Puppy evaluation plus its recipe: copyright rc 0, bash -n clean, and the page reports measured failures (missing mkdosfs, no /dev/loop-control) rather than asserting success. Its measurement rows remain the author\x27s — the container artifacts did not survive the rebuild.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 6b49cba

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 81617e0

@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 81617e06 — the final head after the branch was brought up to date with main, build green, author patch unchanged (fd8f7f7d6c5d), so a confirmation at the final head.

The Puppy evaluation plus its recipe (docs/os-v3-live-puppy-eval.md and os/v3/puppy/{README.md,build.sh,kernel-puppy.fragment,mk-huge-kernel.sh}). Checked at this content earlier: tools/copyright.py --check rc 0, bash -n clean on build.sh and mk-huge-kernel.sh, and the page reports measured failures rather than asserting success — attempt 7 documented with its real errors (mkdosfs: command not found, losetup: /dev/loop16: failed to set up loop device) and their fixes (dosfstools, LOOP_DEVICE=1), and the package-manager row corrected against the built rootfs ("the recipe's own notes claim apt/Synaptic; the built rootfs has /usr/bin/apt absent — measured").

Nothing here is on a shipped path — mkimage.sh, prepare-stick.sh and the workflows do not reference os/v3/puppy/ — so the blast radius is documentation plus a recipe that runs in a throwaway container.

Not verified: the measurement rows themselves. The woof-CE ISO, the huge-kernel tarball and the QEMU transcripts did not survive this box's rebuild, so they remain the author's; the page is specific enough (gh run download, the QEMU invocations) to be re-run by anyone with the artifacts.

tprs-ready is on it.

@bong-water-water-bong
bong-water-water-bong merged commit af6a3e7 into main Nov 1, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the os/v3-puppy-eval branch November 1, 2026 11:01
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