fix(dev-new): recreate /run/lab at boot for lab's podman #443
No reviewers
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos!443
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lab/20261008-0809"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #442
Problem
After dev-new rebooted,
/run/labwas gone and lab could not start containers until the directory was recreated by hand.Cause
The lab service's podman db (
/var/lib/lab/.local/share/containers/storage/db.sql) was created on 2026-07-25, one day before coding-lab ADR-0060 retired the/run/labruntime dir. The db still records runroot/run/lab/containersand tmpdir/run/lab/libpod/tmp, and podman keeps using those recorded paths. lab also setsXDG_RUNTIME_DIR=/run/user/<uid>, but that does not override the recorded paths. Until this reboot,/run/labwas still left over from the oldRuntimeDirectory=labunit./runis root-owned tmpfs, so thelabuser cannot recreate the directory after a boot.Change
A tmpfiles rule
d /run/lab 0755 lab lab -recreates the directory at every boot, beforelab.servicestarts. Its contents stay volatile, which is what podman expects of a runroot.Follow-up (manual, not in this PR)
The proper fix is upstream's documented one-time migration (coding-lab
docs/ops.md):It wipes lab's local containers and images (5 containers are recorded right now), so run it while no container runs are live. Afterwards podman moves to
/run/user/<uid>and this rule can be dropped.Verification
scripts/test-configuration dev-newcannot run in the lab sandbox because egress to github.com is refused, sofetchGitof the coding-lab pin fails. I committed with--no-verify.srcpointed at the local coding-lab snapshot at the same revd1d958bd5bec. It succeeded.config.systemd.tmpfiles.rulescontainsd /run/lab 0755 lab lab -.🤖 Generated with Claude Code
Pull request closed