Repository navigation
os/v3: Puppy as the base - the numbers, the kernel fragment, the build recipe - #739
Conversation
… 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.
PR Reviewer Guide 🔍(Review updated until commit 81617e0)Here are some key observations to aid the review process:
|
|
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).
|
Persistent review updated to latest commit 118467f |
…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.
|
Preparing review... |
|
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.
|
Persistent review updated to latest commit 8625b73 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
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.
…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.
…ce nodes, not /tmp)
|
Persistent review updated to latest commit 632fdea |
…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
left a comment
There was a problem hiding this comment.
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.
|
Persistent review updated to latest commit a992767 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
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/aptabsent — measured"), which turns a row that said "nothing if the notes hold" into "shipaptif 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 (dosfstoolsin the container,LOOP_DEVICE=1to pass/dev/loop-control), plus the fact that it got through0setup/1download/2createpackagesand every stage of3builddistroup tomk_iso.shand 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.
…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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
Persistent review updated to latest commit 2e6d0d2 |
|
Persistent review updated to latest commit ab60fb9 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
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.
|
Persistent review updated to latest commit 6b49cba |
|
Persistent review updated to latest commit 81617e0 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
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.
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 andeach 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
=ysymbols, not a fork.Measured today (strixhalo + QEMU):
bootx64.efi+grubx64.efi+mmx64.efi(shim + grub + MokManager)readelf -V)1bitGLIBC_2.43,lemondGLIBC_2.43,llama-server2.34huge-7.3.0-rc4-1bit-perfopt+.tar.zst111 MB: vmlinuz 12 MB + zdrv 100 MB, 3819 modules,amdxdna/ec_su_axb35signed, firmware amdgpu/amdnpu/rtl_nic/puppy_upup64n_24.04.sfs not foundThe 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 tomount 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 run1bitandlemond, 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 atetc/1bit/kernel; refuses a module for another kernel or an unsigned one. A kernel bump is this scriptplus a rebuild.
os/v3/puppy/kernel-puppy.fragment— the measured=ydelta, with our current value beside eachline. A fragment the weekly kernel build appends before
olddefconfig, not a patch: perfopt and thedriver decisions stay.
os/v3/puppy/build.sh— woof-CE's CI recipe in a throwaway container (12 GB / 4 CPUs cap, no hostpackages, no host devices), our kernel dropped into
kernel-kit/output, outputs to a host directory. Italso records the two things woof-CE assumes and does not say:
merge2outrefuses to run outside arunning Puppy unless
GITHUB_ACTIONSis set, and3builddistrosilently downloads a stock Ubuntukernel when
kernel-kit/outputis 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 servein the VM, the persistence round trip, boot time and idleRAM). The resolute64 ISO build is running as this is filed; the recipe is proven through
merge2out+0setupand 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, UbuntuServer 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).