fix(nix): put /run/wrappers on the container unit PATH #229
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/coding-lab!229
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lab/20260725-1303"
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 #228
Container preflight refused every containerized spawn:
Root cause: rootless podman execs setuid
newuidmap/newgidmapduring user-namespace setup (before even dispatchingversion). On NixOS those exist only as security wrappers in/run/wrappers/bin— the nix store forbids setuid bits, so no package can provide them — and the lab unit PATH is built exclusively from store paths, so podman could not find them. The host was otherwise correctly provisioned (subuid/subgid ranges present, podman 5.8.2 installed); the "install podman >= 4" hint was a red herring. Verified on the affected host:PATH=/run/wrappers/bin:$PATH podman versionsucceeds where the bare unit PATH fails.Changes:
nix/module.nix: add"/run/wrappers"to the container-gatedpathlist (makeBinPath appends/bin), with a comment explaining why it is load-bearing.flake.nixnixos-module check:/run/wrappers/binmust land on the default and container-enabled unit PATH lines, and must NOT leak onto a container-disabled unit — verified red (check fails against the old module) then green.🤖 Generated with Claude Code