claudebox/.planning/quick/260410-d4u-on-non-nixos-hosts-bwrap-fails-because-e/260410-d4u-SUMMARY.md
2026-04-10 09:46:51 +02:00

1.1 KiB

phase plan subsystem tags key-files decisions metrics
quick 260410-d4u sandbox
bugfix
portability
bwrap
modified
claudebox.sh
duration completed tasks_completed tasks_total
28s 2026-04-10 1 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