Skip to content

fix(os): drop the apt lists after the last apt step; correct the stale comment - #889

Merged
VijitSingh97 merged 2 commits into
develop-v2from
fix/870-apt-lists
Aug 4, 2026
Merged

fix(os): drop the apt lists after the last apt step; correct the stale comment#889
VijitSingh97 merged 2 commits into
develop-v2from
fix/870-apt-lists

Conversation

@VijitSingh97

Copy link
Copy Markdown
Collaborator

Closes #870

The comment keeping the lists credited the retired Rugix candidate's build-chroot recipes — a reason that left with Rugix, exactly as the issue suspected. But the lists are not simply deletable either: the issue's other prediction was right too. They ARE still load-bearing inside this Dockerfile — the RigForge-toolchain and updater steps run apt-get install without their own apt-get update and resolve against the lists from the first step.

So the honest shape is both halves: the comment now states the real, checked-by-the-bake reason the lists survive the first layer, and a cleanup after the LAST apt step deletes them — nothing at runtime uses apt, and the rootfs ships as a flat tarball, so the late deletion genuinely leaves every slot and update bundle smaller.

Verified on gouda

  • Full bake from this branch: green (os/build-image.sh + mkimage.sh --dev), refuting the "deleting them fails the bake" claim on the shipped path.
  • tests/os/verify-image.sh --test: 69 passed, 0 failed on the built image.
  • Weight: the lists measure 21 MB (fresh apt-get update on the pinned base); the built image now carries ~0 — ×2 slots plus every bundle.

🤖 Generated with Claude Code

VijitSingh97 and others added 2 commits August 4, 2026 01:55
…e comment

The comment keeping the lists credited the retired Rugix candidate's
build-chroot recipes — a reason that left with Rugix. The lists ARE
still load-bearing inside this Dockerfile (the toolchain and updater
steps install without their own apt-get update), so they survive to the
last apt step and are deleted right after it: nothing at runtime uses
apt, and the rootfs ships as a flat tarball, so the late deletion leaves
every slot and update bundle smaller.

Closes #870

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@VijitSingh97
VijitSingh97 merged commit 934898f into develop-v2 Aug 4, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant