fix(bootstrap): chown jail /home/clawdie so daemon can write staging files
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

#136 moved staging from /var/run/colibri-stage to
/home/clawdie/.cache/colibri/stage. Bastille creates the jail's
/home/clawdie as root:wheel, so the daemon (running as clawdie)
couldn't create staging directories there. chown after binary
copy ensures the daemon owns its home directory inside the jail.
This commit is contained in:
Sam & Claude 2026-06-21 17:43:33 +02:00
parent 3ba60b11dd
commit aa754ce11f

View file

@ -67,6 +67,10 @@ for bin in colibri colibri-daemon colibri-probe colibri-mcp colibri-test-agent c
chmod 755 "${JAIL_ROOT}/usr/local/bin/${bin}"
done
# Ensure the daemon can write staging files under the jail's home directory
# (bastille creates /home/clawdie as root:wheel; the daemon runs as clawdie).
chown -R clawdie:clawdie "${JAIL_ROOT}/home/clawdie"
# Copy npm global agents from the host (jails have no internet).
NPM_PREFIX="/home/clawdie/.npm-global"
mkdir -p "${JAIL_ROOT}${NPM_PREFIX}/bin" "${JAIL_ROOT}${NPM_PREFIX}/lib/node_modules"