Skip to content

os/v3/puppy: base-modes keep-list names the two paths the running system makes writable - #3299

Merged
bong-water-water-bong merged 1 commit into
mainfrom
os/base-modes-keep-runtime
Nov 22, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
os/base-modes-keep-runtime

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Part of #3287.

The base-modes release row reads the merged root, so it also sees what the boot itself creates. On the c35 stick (all base layers normalised by scripts/base-modes.sh) it failed on 3 paths, and all three exist writable only in pup_rw; the shipped layers have them 0755 root:root:

path runtime mode made by
/var/local/shared drwxrwxrwx root:root Puppy's /etc/rc.d/rc.sysinit:506-507 (mkdir -p + chmod 777, every boot)
/var/cache/cups, /var/cache/cups/rss drwxrwx--- / drwxrwxr-x root:lp CUPS, when it starts

The keep-list's own rule is "every entry is a place where the running system WRITES at boot or at runtime", which is what these are. Two prefixes added, with the measurement in a comment.

🤖 Generated with Claude Code

…tem makes writable (engine#3287)

The base-modes release row reads the merged root, so it also sees what the boot creates. On a c35 stick whose base
layers ship both directories 0755 root:root it failed on /var/cache/cups (+ rss) and /var/local/shared, whose
writable copies exist only in pup_rw: Puppy's rc.sysinit chmods /var/local/shared 777 on every boot, and CUPS makes
its cache root:lp group-writable when it starts. The keep-list is the list of places the running system writes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3287 - Partially compliant

Compliant requirements:

  • base-modes keep-list names the two paths the running system makes writable

Non-compliant requirements:

  • Models download into RAM on the live stick
  • The stick's data partition is not grown on first boot
  • Boot waits on unrelated USB storage
  • Stale release-check rows
  • payload-runpath
  • xhci-capture
  • The cut must use the freshly rolled payload
  • The pre-write probe must be able to stop the write
  • Keep the shipped image
  • NPU chat with tools offered
  • chat-npu-queue-plain
  • Qwen3-1.7B on the NPU

Requires further human verification:

  • Boot waits on unrelated USB storage
  • Stale release-check rows
  • payload-runpath
  • xhci-capture
  • The cut must use the freshly rolled payload
  • The pre-write probe must be able to stop the write
  • Keep the shipped image
  • NPU chat with tools offered
  • chat-npu-queue-plain
  • Qwen3-1.7B on the NPU
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incorrect Path Ownership Assumption

The keep-list assumes that /var/local/shared and /var/cache/cups are writable only in pup_rw, but this may not be true in all deployment scenarios. If these paths are not consistently made writable by the running system, the base-modes release row may incorrectly consider them as part of the base layer, leading to incorrect behavior or missed updates.

# engine#3287: written at boot, measured on the AI MAX+ 395 from a c35 stick whose base layers ship both as 0755 root:root
# (the writable copies exist only in pup_rw): Puppy's rc.sysinit runs `mkdir -p /var/local/shared; chmod 777` on every
# boot (its shared folder), and CUPS makes its cache 0770/0775 root:lp when it starts.
var/local/shared/
var/cache/cups/
# The payload is NOT this list's business: it has its own normaliser (pack_normalise_modes) and its own release row,

@bong-water-water-bong
bong-water-water-bong merged commit 0bf6969 into main Nov 22, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the os/base-modes-keep-runtime branch November 22, 2026 11:33
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