--- phase: quick plan: 260410-d4u subsystem: sandbox tags: [bugfix, portability, bwrap] key-files: modified: [claudebox.sh] decisions: [] metrics: duration: 28s completed: "2026-04-10" tasks_completed: 1 tasks_total: 1 --- # Quick Task 260410-d4u: Fix /etc/static mount on non-NixOS Summary Conditional /etc/static bwrap mount using CONDITIONAL_MOUNTS array -- non-NixOS hosts no longer fail on missing path. ## What Changed Added a `CONDITIONAL_MOUNTS` array that checks for `/etc/static` existence before including it as a bwrap `--ro-bind`. The array is spliced into both the dry-run output path and the exec bwrap call, keeping the two in sync. ## Task Results | Task | Name | Commit | Status | |------|------|--------|--------| | 1 | Conditionally mount /etc/static only when it exists | 97c10f8 | Done | ## Verification - `bash -n claudebox.sh` passes - On NixOS (where /etc/static exists): mount is included via CONDITIONAL_MOUNTS array - On non-NixOS: CONDITIONAL_MOUNTS is empty, mount is skipped entirely - Dry-run and exec paths both use the same array ## Deviations from Plan None -- plan executed exactly as written. ## Self-Check: PASSED