Repository navigation
os/v3/puppy: a live stick boots its own data partition, by UUID, never the installed disk's - #3295
Merged
Merged
Conversation
…r the installed disk's (engine#3287) The stick found its root by label: grub 'search --label 1BIT-DATA' and pupsfs=1BIT-DATA. A machine that already runs an installed 1bit OS has a second 1BIT-DATA partition, and on the AI MAX+ 395 (22 Nov) both resolved to the NVMe first: a freshly written stick booted the INSTALLED system's SFS and save layer with only /data on the stick (/etc/rc.d/PUPSTATE: PUPSFS='nvme0n1p2,ext4,/1bit/puppy_upup64r_26.04.sfs', PUPSAVE on nvme0n1p2), so the stick's own fixes never ran and an install from that boot would have copied the old system back. mkimage.sh now chooses the data partition's UUID (ONEBIT_STICK_DATA_UUID overrides), formats with it and pins it in grub's search and as pupsfs=UUID= 1bit.data=UUID= - the form 1bit-install already writes for an installed disk. 1bit-install's rewrite also accepts a UUID-pinned stick grub.cfg (the label patterns stay for older sticks) and replaces the stick's UUID with the installed disk's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This was referenced Nov 22, 2026
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 23, 2026
…made, read from the /data device (engine#3287) (#3339) #3295 pins a live stick to its OWN data partition by filesystem UUID (pupsfs=UUID=<1BIT-DATA's UUID>), so a stick never boots the installed disk's 1BIT-DATA. The row still expected the label form it replaced (pupsfs=1BIT-DATA) and failed every image since: c35, and both v2026.48 cuts. It now takes the device mounted at /data from /proc/mounts, reads its UUID with blkid, and passes only when the command line pins exactly that UUID - so it stays right with a second 1BIT-DATA disk attached, and a pin to another disk's data partition fails. Measured: Secure Boot QEMU on ryzen, the v2026.48 image (839a798d): `PASS boot pin pupsfs=UUID=4df5d05a-... | data-dev=/dev/sda2 data-uuid=4df5d05a-... | boot-pin-uuid`. Against fakes: a pin to another UUID prints no marker (FAIL). --verdict-selftest unchanged (0 failures). Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3287. Found on the hardware tonight; release-blocking for any stick used on a machine that already runs 1bit OS.
What happened (AI MAX+ 395, 22 Nov): the stick finds its root by label,
search --label 1BIT-DATAin grub.cfg andpupsfs=1BIT-DATAon the command line. After installing 1bit OS to the NVMe there are two1BIT-DATApartitions, and both lookups resolved to the NVMe first. A freshly written stick (its bytes verified against the image) booted the installed system's SFS and save layer; only/datacame from the stick:So the stick's own fixes never ran, and an install started from that boot would have copied the old system back onto the disk.
Change:
mkimage.sh: chooses the data partition's UUID (ONEBIT_STICK_DATA_UUIDoverrides), passes it tomkfs.ext4 -U, and pins it in grub (search --fs-uuid) and on the command line (pupsfs=UUID=… 1bit.data=UUID=…), the form1bit-installalready writes for an installed disk. The1BIT-DATAlabel stays for tools that look for it.1bit-install.sh: the grub.cfg rewrite also matches a UUID-pinned stick (label patterns kept for older sticks) and replaces the stick's UUID with the installed disk's; its existing post-checks are unchanged.bash -nclean on both; the installer's sed checked on a UUID-pinned sample. The hardware proof (stick boots itself on a machine with 1bit OS installed, then installs) follows on the rebuilt stick.🤖 Generated with Claude Code