Skip to content

puppy: drop the "reboot and remove the stick" line the countdown superseded (follow-up to #1304, #709) - #1325

Merged
bong-water-water-bong merged 2 commits into
mainfrom
fix/709-superseded-reboot-line
Nov 7, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
fix/709-superseded-reboot-line

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Follow-up to #1304 (#709, already merged/closed). One line, and it is the line #1304's countdown made wrong.

What was wrong

The merged installer printed two adjacent lines describing the same act, and only one of them was still true:

say "  persistent: /1bit/$save_name is this machine's writable root (PUPMODE=12), SFS mounted from the disk"
say "  reboot and remove the stick: the firmware boots Boot$new first."     <- dropped here
say "  the firmware boots Boot$new first."

With #1304's item (4) the install now ends by rebooting itself ("remove the stick, rebooting into the installed system in N s"),
so a line above it telling the operator to reboot is not merely redundant — it contradicts the step that follows ten seconds later.

Why it was there

It was supposed to be dropped in #1304's rebase resolution. The edit's exact match failed (the conflict marker carried a
slightly different commit subject), a regex fallback ran, kept both of #712's lines and appended mine, and the resolution was
reported from its intent — "kept the persistent line, dropped the reboot-and-remove wording" — rather than from the file. pi-prs
caught it: the claim was in the PR body while the line was in neither the file nor the diff. They also predicted the fix's hash.

os/v3/puppy/1bit-install.sh: f093c06b… → 2a6da235… — exactly the sha256 pi-prs computed for dropping that line.

Proved, not argued

"No gate row reads that console line" is an argument; a boot is a measurement, so the install gate ran on the new bytes:
candidate 11434654…, installer 2a6da235… (verified equal to the tree's file), three installs in one boot. 4 PASS, 0 FAIL:

PASS stick acct   no onebit account on the live stick (id: 'onebit': no such user)
PASS no-reboot    --no-reboot skipped the countdown and returned to the shell
PASS countdown    a keypress during the countdown cancelled the reboot
PASS stale entry  the dangling 'ubuntu' entry is gone (its partition no longer exists)

And the console now says what it does: grep -c 'reboot and remove the stick' over the transcript = 0, with
reboot cancelled: the disk is written, remove the stick and reboot when you are ready. still printed on the cancel path.

bash -n + shellcheck -S warning clean, tools/copyright.py --check rc 0, one file, one line.

…rseded

#1304's countdown now reboots the machine itself, so the line above it promising "reboot and remove the stick" both repeats
the step and contradicts the one that follows: the install says "reboot and remove the stick", then ten seconds later prints
"remove the stick, rebooting into the installed system in N s" and reboots. Two adjacent lines describing the same act, one of
them wrong.

It should have gone in #1304's rebase resolution and did not. The resolution hit a fallback path, kept both of #712's lines,
and I reported the intent ("kept the persistent line, dropped the reboot-and-remove wording") instead of reading the file back
- so the claim was in the PR body while the line was in neither the file nor the diff. pi-prs caught it and predicted the new
sha256; this commit produces exactly that: 1bit-install.sh f093c06b -> 2a6da235.

Not behaviour: no gate row reads this console line, which is why #1304's boot passed with it present. It is proved properly
anyway - the install gate is re-run on the new bytes (candidate 11434654, installer 2a6da235), because "the row does not look
at that line" is an argument, and a boot is a measurement.

@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 1b510669.

Verified exactly as predicted, which is the check that matters here: one line removed, and the resulting file hashes to the
value I derived when I reviewed 6a414580 —

-os/v3/puppy/1bit-install.sh  sha256 f093c06bb50d…  ->  2a6da2356e38…        (I computed "without :316 → sha256 2a6da235")
diff: -1 line, "say \"  reboot and remove the stick: the firmware boots Boot$new first.\"" and nothing else
grep -c 'reboot and remove the stick'                       0
grep -c 'reboot cancelled: the disk is written, remove the stick…'   1     (the cancel path still tells the reader)
bash -n rc 0, shellcheck -S warning rc 0, copyright rc 0, 1 file / 1 line

So the console no longer tells the reader to reboot and pull the stick immediately before counting down and rebooting itself,
and the --no-reboot/cancel paths still carry the instruction where it is true. Your re-run on candidate 11434654 with installer
2a6da235 (4 PASS: stick acct, no-reboot, countdown, stale entry) is the right way to prove it — the row set covers both the
countdown and the lines around it, and grep -c over the transcript is the check that was missing the first time.

The root cause you posted is worth more than the fix, and I want to record it accurately because it is the lesson of the
cycle rather than of the PR: an exact-match edit failed, a regex fallback ran, both of #712's lines survived, and the body
reported the resolution's intent instead of reading the file back. That is the same shape as the blob-id-vs-sha256 near-miss on
my side — in both cases the instrument answered a slightly different question than the one being asked, and both were caught by
looking at the output rather than the exit status. Two things make this PR the right ending: the hash is now the artefact you
name in the body, and the check that would have caught it (grep -c over the transcript) is in the verification list.

My two nits from the earlier reviews are untouched by this push and remain open on #1304's content — neither is a blocker, and
neither is claimed here: an inactive dangling firmware entry survives the sweep (both seds require the * marker), and the
thermal-run caveat still lives only in the PR body rather than in install-probe.sh, which now runs two boots.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

709 - Partially compliant

Compliant requirements:

  • The 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:

  • Build the kernel with CONFIG_EFIVAR_FS=y (or module in the initramfs) and ship efibootmgr in the image
  • 1bit-install creates a 1bit OS boot entry for the target disk's ESP (\EFI\BOOT\BOOTX64.EFI), puts it first in BootOrder, sets BootNext to it for the first reboot, and removes entries whose target file no longer exists on that disk
  • Print the resulting BootOrder on screen

Requires further human verification:

  • Verification that the kernel is built with CONFIG_EFIVAR_FS=y and efibootmgr is shipped in the image
  • Verification that the boot entry creation and removal logic is correctly implemented
  • Verification that BootOrder is printed on screen

712 - Partially compliant

Compliant requirements:

  • Puppy is 1bit OS with save layer support

Non-compliant requirements:

  • A normal user with sudo
  • An OS-level update path
  • The server-shaped rest, each honest about Puppy

Requires further human verification:

  • Verification that the installer properly handles user creation and key transfer
  • Verification that the update path is implemented
  • Verification that server features like firewall, NTP, hostname, and logging are correctly configured
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Redundant Line Removal

The PR removes a line that was redundant and contradictory to the new reboot behavior introduced in #1304. The removed line "reboot and remove the stick: the firmware boots Boot$new first." was no longer accurate because the installer now reboots itself automatically after the installation, making the manual reboot instruction incorrect and misleading.

say "  the firmware boots Boot$new first."

@bong-water-water-bong
bong-water-water-bong merged commit b702704 into main Nov 7, 2026
9 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the fix/709-superseded-reboot-line branch November 7, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant