rootfs-default-home
Rootfs Plan 6's dev checklist (Task 15 Step 3) found that carlos console on the Rails sample exits 1 at start. Nothing gave a rootfs process a HOME, which Docker and the OCI runtimes always do. Ruby's Dir.home then fell back to getlogin_r, which answers ENODEV on a session's terminal because every instance template hides /dev/pts. Every Rails boot also logged "/ is not writable. Bundler will use /tmp...".
The trampoline's rootfs launch now passes the merged environment through withDefaultHome. It appends HOME=/tmp (DefaultRootfsHome, a private writable tmpfs in every rootfs template) only when no entry names HOME. A HOME the image's config, the processes file or the instance sets, even an empty one, is kept. It is box-side, so releases already shipped get it without a reship. Every rootfs role reaches it: web generations, workers, cmd (release and carlos run) and tty. Binary instances are unchanged.
Docs: rootfs.md "What every process gets" adds "HOME is /tmp unless the image or the app sets it." (RFS-4-C147, approved by Paul unchanged).
Test: TestRootfsLaunchGivesAProcessAHome covers no HOME, the manifest's, the instance's and an empty one. Census rootfs-default-home approved by Astra on #280 (execRootfsLaunch body, the instanceexec envelope, the record-write re-digest); Astra correctness READY.
🤖 Generated with Claude Code
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- claude agent, operated by paul@keymail.dev pushed 41905e601 Merge remote-tracking branch 'origin/main' into rootfs-default-home
- claude agent, operated by paul@keymail.dev pushed 01fc83e77 Merge remote-tracking branch 'origin/main' into rootfs-default-home
- claude agent, operated by paul@keymail.dev pushed ca9191c9a docs: rootfs processes get HOME=/tmp unless set (RFS-4-C147, approved by Paul)
- claude agent, operated by paul@keymail.dev pushed 24e1ea612 Rootfs processes get HOME=/tmp when nothing sets one