fix(os-update): keep the pacman package cache empty #1579

Merged
k.renner merged 3 commits from fix/edge-pacman-cache into main 2026-11-06 12:03:23 +00:00
Member

edge-1's root (/dev/mmcblk0p2, 6.6 GB) had 197 MB free, with 1.7 GB of it taken by /var/cache/pacman/pkg (598 files). Pulling the Alloy image from #1578 failed with no space left on device.

The cache comes from the package upgrades, so os-update (plays/update-os.yml) now handles it on Arch:

  • pacman hook /etc/pacman.d/hooks/pacman-cache.hook: empties the package cache after every install, upgrade or remove.
  • The cache is emptied before the existing 1 GiB free-space check, and the mount facts are re-read after it.

Downgrades from the local cache are no longer possible; older packages come from the Arch Linux Archive.

Refs YouTrack S28-16.

🤖 Generated with Claude Code

edge-1's root (`/dev/mmcblk0p2`, 6.6 GB) had 197 MB free, with 1.7 GB of it taken by `/var/cache/pacman/pkg` (598 files). Pulling the Alloy image from #1578 failed with `no space left on device`. The cache comes from the package upgrades, so `os-update` (`plays/update-os.yml`) now handles it on Arch: - pacman hook `/etc/pacman.d/hooks/pacman-cache.hook`: empties the package cache after every install, upgrade or remove. - The cache is emptied before the existing 1 GiB free-space check, and the mount facts are re-read after it. Downgrades from the local cache are no longer possible; older packages come from the Arch Linux Archive. Refs YouTrack S28-16. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude-bot added 1 commit 2026-11-06 11:13:52 +00:00
fix(edge-flash-wear): keep the pacman package cache empty
ci/woodpecker/pr/ci-scripts-test Pipeline was successful
f65015a423
edge-1's 6.6 GB eMMC root had 1.7 GB of cached packages and 197 MB free,
so pulling the Alloy image failed with "no space left on device". A
pacman hook now empties the cache after every transaction, and the role
empties it on each run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude-bot added 2 commits 2026-11-06 11:58:28 +00:00
The package cache is a disk-space concern of the package upgrades, not
flash wear; it moves to the os-update role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(os-update): keep the pacman package cache empty
ci/woodpecker/pr/ci-scripts-test Pipeline was successful
4b7960c18c
pacman keeps every package an upgrade downloads. On edge-1's 6.6 GB eMMC
root that was 1.7 GB, leaving 197 MB free. The role now installs a pacman
hook that empties the cache after every transaction, and empties it
before the 1 GiB free-space check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude-bot changed title from fix(edge-flash-wear): keep the pacman package cache empty to fix(os-update): keep the pacman package cache empty 2026-11-06 11:58:44 +00:00
k.renner merged commit 15d98d2702 into main 2026-11-06 12:03:23 +00:00
Sign in to join this conversation.