#712)
`1bit-install` copied the live stick's state to the disk, and the stick has no save
layer on purpose (it writes to RAM) and boots with `pfix=copy` on every entry (the
SFS are copied into RAM). So an "installed" 1bit OS was the live image with a bigger
disk under it: PUPMODE=5, nothing persists across a reboot.
Two changes, both written at install time rather than left to a first boot:
* the save layer `/1bit/<DISTRO_FILE_PREFIX>save` is created on the target. Its name
comes from the image's own /etc/DISTRO_SPECS (Puppy's init finds a save folder by
that prefix) and the installer refuses to start without it - a guessed name installs
cleanly and then boots with no persistence. A `SAVESPEC` copied from an installed
source is removed (it names the other machine's partition).
* the copied grub.cfg gets `pfix=nocopy` in place of `pfix=copy`, so the installed
system mounts its SFS from its own disk instead of RAM-copying ~1.4 GB every boot.
The stick keeps pfix=copy: it is a live medium.
`install-probe.sh` gains the installed disk's own boots and asserts both on the disk:
PUPMODE=12, the root's upperdir under the save folder, no squashfs mount from
/mnt/tmpfs, and a write to /root that survives the guest's own reboot.
refs #712 (the boot-entry half of the same install step is #709, pi-os3).
#712, rescoped: the installer puts a persistent 1bit OS on the disk, not the live RAM image
Owner, 2026-11-06: "puppy and we will offer install packages for distros" — Puppy is the one base, the installer
installs it to disk, other distributions are our install packages. This PR is the installer half; the boot entry of the
same step is #709 (pi-os3) and step 7 of
1bit-install.shis untouched.What was wrong, measured on the shipped bytes
1bit-installcopies the booted stick's/datapartition (which is also where/1bitlives) onto the new disk. Thatis right for the frugal install — kernel, initrd, four SFS — but the shipped medium carries no save layer, and
every GRUB entry asks for
pfix=copy:So the "installed" machine was the live image with a bigger disk under it:
PUPMODE=5(the session is thrown away atpower-off) and ~1.4 GB of SFS copied into RAM on every boot. That is exactly the owner's sentence: a full persistent
install rather than the live RAM image.
The fix — two things, both written at install time
/1bit/<DISTRO_FILE_PREFIX>saveis created on the target. It is a save folder, which isPuppy's own write-through root: the init finds it by prefix (
find_save_file) andsetup_psavemakes<folder>/upperthe overlay's upperdir, soPUPMODE=12and every write lands on the disk as it is made. Its namecomes from the image's own
/etc/DISTRO_SPECSand the installer refuses to start without it — a guessed nameinstalls cleanly and then boots with no persistence at all. Puppy's own creator does the same two things
(
shutdownconfig:mkdir+.DirIcon); a layer with no/initrd/DISTRO_SPECSis a normal first boot(
rc.update'src_update_force_pm5pass rebuilds/etcfrom the SFS). ASAVESPECcopied from an installedsource is removed — it names that machine's partition.
pfix=nocopyin place ofpfix=copyin the copiedgrub.cfg, so the installed system mounts its SFS from itsown disk instead of RAM-copying them every boot. The stick keeps
pfix=copy: it is a live medium and that is itspoint. Read-back fails the install if a
linuxline still carriespfix=copyor none carriespfix=nocopy.shortcut:the installed disk is treated as a hard disk (pmedia=usbhd→PUPMODE=12, direct writes); an installonto a bare flash stick gets direct writes instead of Puppy's flash-friendly
PUPMODE=13. Upgrade (read the removableflag, write
pmedia=usbflash) if installing to flash sticks becomes a target.The gate — the installed disk's own boots, not the installer's log line
install-probe.sh(QEMU, Secure Boot on,1bit-install /dev/vdaonto a second disk) now also boots the installed diskby itself, then again into its serial root shell, and asserts the two things on the running system. Candidate: c31's
shipped SFS + only
usr/local/bin/1bit-install(~/wt/puppy-out-i712/1bit-os-puppy.img,d0b5cfe7…, SFS92c89f84…), run asPUPPY_PUPSFS=uuid PUPPY_ASSERT_PUPSFS=1 … install-probe.sh <img> <work> 1500:Three failed runs before it, and what each one caught: attempt 1 was the box at load average 80 (the 180 s wait for the
GRUB menu expired — that is the harness, not the candidate, and it needs no change); attempt 2 passed
PUPSFS=wherethe script reads
PUPPY_PUPSFS=so the pre-existing #865 row failed before my legs ran; attempt 3 exposed two defectsin my own rows — boot-time service notices interleave on the serial console (a row read
24onboard-webapp: serving …as its answer, so every value now comes through its ownTOKEN=prefix and a__S__bracket), and
printf "%%s,\"reachedawkliterally because the command line is an argument of a%-format, sothe SFS row printed
%s,%s,%s,%s,and its/mnt/tmpfsassertion was vacuously true. Both are fixed; thelosetup -arow is the loop backing files that prove where the SFS come from.
The installer's new refusals are exercised off-device too: with the two
sedexpressions applied to the stick's ownfour
linuxlines,linux … pfix=copy,→ 0 matches andpfix=nocopy→ 3, and a comment line that mentionspfix=copydoes not trip the refusal (the check is line-scoped tolinuxlines).Not in this PR, deliberately
efibootmgr,BootOrder, stale-entry removal: pi-os3's, untouched, andcoordinated in
~/briefs/TNOTE-i712-os3-install.md. The probe's firmware rows are theirs too; my changes are theinstalled-disk legs.
model (console, sshd and the keys assume root;
sudois in the image with no second account to serve), and an"update" is a new appliance SFS with the save layer surviving it, which is what this PR makes possible. Both are
named in
docs/os-v3.mdunder the new section rather than claimed here.Files
os/v3/puppy/1bit-install.sh/etc/DISTRO_SPECS; save layer created in step 4;pfix=nocopy+ assertions in step 5; read-back in step 6; header comment and the finalsayos/v3/puppy/install-probe.shInstalledclass (bracketed rows, guestreboot -fon the same VM) and the persistence verdictsdocs/os-v3.mdautoinstall,install-any-distrofor other distributions) + a new "The installed machine is a persistent OS (#712)" section; the Ubuntu design is retitled historydocs/os-v3-live-puppy-eval.mdos/v3/puppy/README.md1bit-install.shrow describes the save layer andpfix=nocopyrefs #712. Closes nothing on its own: the issue keeps the user/update half, named above.