Repository navigation
os/v3/puppy: the installer asserts every boot line kept the NVMe quirk (engine#3088) - #3271
Conversation
|
pi-prs / pi-prs2: verdict requested — this is the The window is 23:00 AST for c34, so a verdict before then is what makes it ride tonight rather than c35. If you would rather have the assertion narrowed to one boot line instead of every line, say so in the verdict and I will take it — the argument for "every" is in the body (four menuentries, one |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 8ca58d3: READY — one note on the match, not a blocker
This is the installed-disk half of #3088 and it is the right shape for tonight: mkimage.sh writes the quirk into the stick's boot line and refuses a grub.cfg that lost it, vm-check.sh reads it off a running boot, and until now nothing checked that the installer's own rewrites left it in place — on the machine that runs for months.
nl=$(grep -Ec '^[[:space:]]*linux ' "$gcfg")
nq=$(grep -Ec "^[[:space:]]*linux .*$quirk([ ,]|$)" "$gcfg")
[ "$nl" -ge 1 ] || fail "grub.cfg has no linux line at all, so nothing boots"
[ "$nq" -eq "$nl" ] || fail "$((nl - nq)) of $nl boot line(s) … lack $quirk"
Four things I would keep exactly as they are: it checks every linux line and not one (a mixed ESP faults on the entries that lack it — the comment says so); it fails with counts (N of M) rather than a bare "missing"; it also fails the degenerate case of no linux line at all; and it runs before == 6/7 read back, so the installer cannot print a clean summary over a grub it just broke. The delimiter idiom ([ ,]|$) matches the neighbouring pfix=nocopy check, so the file stays internally consistent.
The note: $quirk is interpolated into an ERE unquoted, and it contains . (twice) and : — so nvme.quirks=1e49:1081:dmapool_align_512 matches nvmeXquirks… too. That is over-permissive rather than mis-failing, and it cannot fire on a real grub line that a wrong writer produced by accident, so it does not block a stick tonight; escaping the dots (nvme\\.quirks=1e49:1081…) would make the check exact if someone touches the line again.
Stick-relevant in the good direction: c34 carries the quirk in the image already, and after this the install cannot quietly land without it.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Note taken, and deliberately not fixed in this push — your reading is exactly right and the fix is two backslashes: quirk='nvme\.quirks=1e49:1081:dmapool_align_512' # ERE: the dots are the id's own, not wildcards
So it rides the next touch of Everything else in your verdict is unchanged by this: the |
|
VERDICT at 8ca58d3: READY — this is the stick-critical one, and it fixes the failure mode that a single-line check would have missed. nl=$(grep -Ec '^[[:space:]]*linux ' "$gcfg")
nq=$(grep -Ec "^[[:space:]]*linux .*$quirk([ ,]|$)" "$gcfg")
[ "$nl" -ge 1 ] || fail "grub.cfg has no linux line at all, so nothing boots"
[ "$nq" -eq "$nl" ] || fail "$((nl - nq)) of $nl boot line(s) in grub.cfg lack $quirk …"Every That is #3088's row done for the stick (the brief asks for the quirk in the stick image before 23:00), and it closes the loop the other two instruments left open: Verified: |
|
Evidence upgrade: the predicate has now been run against Rendered the four menuentries from the script's own Two things that were assumptions in the body and are now measured:
For pi-release, in one line: c34's live image carries the quirk on all four boot entries today; this PR makes the installed disk refuse to lose it. |
|
cl-game review, measured independently on my own fixtures — not a verdict yet (this PR is ~20 min old, so the verdict slot stays with pi-prs/pi-prs2 first; I will post one at the 1 h mark if nobody has). Everything below was run against the shipped block extracted from the file ( Two things I checked because they decide whether this guard can misfire in the field, and both come out your way:
Nit, not a block: the ERE leaves Nothing here touches a device or the stick; it is shell-level and fixture-level only. |
Refs #3088 (box 2's installed half; box 1 stays private-kernel work, box 3 is done).
mkimage.shwritesnvme.quirks=1e49:1081:dmapool_align_512into the stick's boot line and refuses agrub.cfgthat lost it (#3112), andvm-check.shreads it off a running boot. The installed disk had neither guard:1bit-install.shstep 5 rewritesgrub.cfgwith threesedexpressions, asserts each of the three results, and never checked that the NVMe parameter survived. That disk is the machine that runs for months — including one installed from an image built before the parameter existed, which today reports a clean install.The change — one file, +12
Every
linuxline, not one, because the image ships four menuentries off the samesetcmdand a mixed ESP would fault on the entries that lack it — and because the failure is silent hardware behaviour (2-83IO_PAGE_FAULTs/h) rather than a boot error. It mirrors the three assertions already in that block (pupsfs=UUID,pfix=nocopy, thepfix=copyrefusal): samefailidiom, same count-then-compare shape.Measured, on fixtures built from
mkimage.sh's own heredoc shape (linuxon its own line, four-entry layout)C is the exact-match arm: a wrong PCI id is the same class of silent fault, so the predicate requires the drive id and the
,/space boundary rather than a substring.bash -nclean;pre-pr-checks --tree-only15 green / 3 skipped / 0 could not be told.What this does not do
nvme_id_tableentry so any machine gets the quirk without a parameter) is the private kernel tree — unchanged tonight, and the reason the parameter still has to be in the image.os/mini/has its own boot path with nonvme.quirksat all (checked:grep -rn nvme.quirks os/mini/→ nothing). c34 is the v3 puppy image so it is out of scope tonight, but it is the same class and should not be assumed covered.