mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
In CI the workflow runs as the unprivileged `runner` user, so `scripts/install/package.sh`'s `apt-get update && apt-get install build-essential debhelper dpkg-dev rsync` aborted with `E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)` before the .deb was ever produced. Local act runs as root inside catthehacker/ubuntu so we never hit it. Detect non-root in 05_bootstrap_nodes.sh and prepend `sudo -E` to the build invocation. Inside the swarm-node containers package.sh still runs as root and never goes through sudo (those exec calls are unchanged). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>