Repository navigation
os: prepare-stick grows the data partition to the stick's full size (#706) - #724
Conversation
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At de4d4409 (os/mini/prepare-stick.sh +47 −0).
The two properties that matter are both structurally right:
--checknever writes.[ "$CHECK" = 1 ] || grow_data, so a check run cannot touch the partition table; the mount below isroin that mode as before.- A failed growth leaves a usable stick.
grow_datareturns early and silently on every precondition ([ -b "$TARGET" ],sgdiskpresent,blockdev --getsize64, parseable partition number, ≥1 MiB of room), a failedsfdisk -Nprints and returns without touching anything,sgdisk -eis best-effort (it must run first or the backup GPT stays at the end of the 2 GiB image), andresize2fsfailing is adierather than a silently-grown-but-unresized filesystem. ThenSIZEis re-read fromsfdisk -dso the mount, the loop device and the printf all use the partition that actually exists.
The reasoning in the comment is the right one: this is a prepare-time operation, before anything is mounted, rather than a first-boot surprise — and "the live appliance could only ever run its bundled Qwen3-0.6B" is a concrete reason a 2 GiB data partition on a 64 GiB stick is not shippable.
Not executed: the growth itself. It needs a real block device and root (sgdisk/sfdisk/partx), and the only loop-device route on this box would also satisfy [ -b ] and write partition tables — not something to do while other lanes are working. So this verdict is the code path read end to end plus bash -n; the assertion the author should run once on hardware is the grown … now holds X GiB of ext4 (was 2.0 GiB) line on the 64 GiB stick.
tprs-ready applied. Same stack note as its neighbours: it sits behind #719 and #720 and cannot land until those two are resolved.
df18a68 to
bd3dac1
Compare
de4d440 to
8777c38
Compare
PR Reviewer Guide 🔍(Review updated until commit bbbdeed)Here are some key observations to aid the review process:
|
|
Persistent review updated to latest commit b140507 |
bd3dac1 to
d37209c
Compare
b140507 to
bbbdeed
Compare
|
Persistent review updated to latest commit bbbdeed |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
Re-confirmed at the current head. The author patch is unchanged from the head I reviewed — the delta since then is the rest of this stack arriving through rebases (#719's serial-log fix and its neighbours), which I have reviewed and re-verdicted in their own PRs. So everything in my earlier verdict on this PR applies unchanged at this head, including what I recorded there as not-verified-by-me (the QEMU gate).
tprs-ready stands.
|
Superseded by #742 — the same reviewed content as one commit on |
…ntity (#704) (#720) * os: the banner and the release check read the image's own release identity (#704) * os: the release identity reports the HRX pin, not the engine commit (#704) Review of #720: `git -C third_party/hrx-system rev-parse HEAD` walks up to the parent repository when the submodule is not checked out - the way the release lane builds - so the image shipped 'hrx-system: <engine sha>' and the '|| unknown' fallback never fired. The gitlink recorded in this tree is the pin the release ships: `git ls-tree HEAD third_party/hrx-system`. Measured before/after below. * os: one boot flow - countdown on the choice line, live status while DHCP and Lemonade come up (#705) * os: a 16x32 console font and a full-width selection bar (#707) (#722) Co-authored-by: bong-water-water-bong <[email protected]> * os: drop the sound modules and refuse unsigned modules in mkimage (#708) (#723) * os: a 16x32 console font and a full-width selection bar (#707) * os: drop the sound modules and refuse unsigned modules in mkimage (#708) --------- Co-authored-by: bong-water-water-bong <[email protected]> * os: prepare-stick grows the data partition to the stick's full size (#706) (#724) * os: a 16x32 console font and a full-width selection bar (#707) * os: drop the sound modules and refuse unsigned modules in mkimage (#708) * os: prepare-stick grows the data partition to the stick's full size (#706) --------- Co-authored-by: bong-water-water-bong <[email protected]> --------- Co-authored-by: bong-water-water-bong <[email protected]>
Fixes #706. The image's data partition is 2 GiB (that is what makes it a 2.3 GiB write), so the 64 GiB stick had
351 MiB free on /data after boot and no catalogue model could be pulled.
prepare-stick.shnow does it at prepare time, not at first boot:sgdisk -e(the backup GPT is still at the endof the image that was written to a 64 GiB device), the data partition re-created at the same start with
size=+, thenresize2fs.--checknever grows anything; an image file (no room) is skipped.Measured on a loop-mounted copy of the c18 image on a 6 GiB device: 2.1 GiB -> 5.8 GiB, free 4.3 G,
--checkexit 0 afterwards.
PR-READY.