colibri/packaging/freebsd
Sam & Claude b0a0ff4891
Some checks failed
CI / rust (pull_request) Has been cancelled
CI / markdown (pull_request) Has been cancelled
CI / port (pull_request) Has been cancelled
CI / agent-jail-pkgs (pull_request) Has been cancelled
fix(bootstrap): set jail npm PATH via /etc/profile.d, drop per-user .profile hack
Root cause of the recurring "pi/bw not found in jail" bug: the npm-global-on-PATH
fix was solved canonically in the clawdie-iso image (/etc/profile.d/clawdie.sh,
all login shells), but the agent jail is a separate environment that never reused
it — a fresh Bastille jail doesn't inherit the image's profile.d, and the
bootstrap set no PATH. PR #120 band-aided it with a hardcoded append to one
user's ~/.profile (sh-only, drifts from NPM_PREFIX).

Replace that band-aid with the same mechanism the image uses, scoped to the jail:
- write one managed /etc/profile.d/clawdie-npm.sh derived from NPM_PREFIX
- source it from /etc/profile (covers all sh/bash login shells, system-wide),
  idempotently
- delete the per-user ~/.profile append from #120

Now the PATH content lives in a single file tied to NPM_PREFIX, so it can't miss
shells or drift from the prefix. Follow-up (not here): hoist the snippet into one
shared file installed by both clawdie-iso and the jail bootstrap, so a future new
environment can't re-grow this.

Verified: sh -n clean; smoke test — snippet expands NPM_PREFIX (keeps $PATH
literal), /etc/profile sources it, append is idempotent, sourced shell resolves
the npm-global bin onto PATH.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 08:59:33 +02:00
..
port docs(port): EU date format for the Linux-gate note (20.jun.2026) 2026-06-20 22:49:46 +02:00
agent-jail-bootstrap.sh fix(bootstrap): set jail npm PATH via /etc/profile.d, drop per-user .profile hack 2026-06-21 08:59:33 +02:00
check-agent-jail-pkgs.sh chore(jails): CI guard for agent-jail package drift vs clawdie-iso 2026-06-20 22:39:34 +02:00
colibri-agent-loop.md docs(vault): use local test agent in first-proof runbook (Sam & Pi) 2026-06-20 09:05:30 +02:00
colibri_bridge.in feat(freebsd): cross-host TCP bridge + agent polling loop 2026-06-19 12:18:52 +02:00
colibri_daemon.in fix(freebsd): add provider.env template + setup docs 2026-06-20 08:12:57 +02:00
newsyslog-colibri-bridge.conf feat(freebsd): cross-host TCP bridge + agent polling loop 2026-06-19 12:18:52 +02:00
newsyslog-colibri.conf feat: ISO service hardening — rc.d + log rotation + layout docs 2026-05-31 16:48:48 +02:00
provider.env.example fix(freebsd): add provider.env template + setup docs 2026-06-20 08:12:57 +02:00