Hostityourself/infra
Claude e7fd2a4365
fix: auto-enable cgroup swap accounting on Pi before starting containers
runc (used by Podman) always writes memory.swap.max when initializing the
cgroup v2 memory controller, even without explicit --memory flags. On
Raspberry Pi OS this file is absent because swap accounting is disabled
by default in the kernel, causing every container start to fail with:

  openat2 …/memory.swap.max: no such file or directory

start.sh now detects this condition early, patches the kernel cmdline
(cgroup_enable=memory cgroup_memory=1 swapaccount=1) in either
/boot/firmware/cmdline.txt (Pi OS Bookworm) or /boot/cmdline.txt
(older releases), and tells the user to reboot once before continuing.

https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
2026-03-22 18:05:11 +00:00
..
.env.example Add session-based auth to dashboard and API 2026-03-20 13:45:16 +00:00
docker-compose.yml Fix builds delegating to host Podman via CONTAINER_HOST 2026-03-22 10:50:41 +00:00
Dockerfile.server Replace Docker with Podman throughout 2026-03-20 14:58:52 +00:00
Makefile Replace Docker with Podman throughout 2026-03-20 14:58:52 +00:00
start.sh fix: auto-enable cgroup swap accounting on Pi before starting containers 2026-03-22 18:05:11 +00:00