Repository navigation
puppy: drop the "reboot and remove the stick" line the countdown superseded (follow-up to #1304, #709) - #1325
Conversation
…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
left a comment
There was a problem hiding this comment.
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.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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:
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…, installer2a6da235…(verified equal to the tree's file), three installs in one boot. 4 PASS, 0 FAIL:And the console now says what it does:
grep -c 'reboot and remove the stick'over the transcript = 0, withreboot cancelled: the disk is written, remove the stick and reboot when you are ready.still printed on the cancel path.bash -n+shellcheck -S warningclean,tools/copyright.py --checkrc 0, one file, one line.