clawdie-iso/firstboot
Sam & Claude 68f1c1fad7 fix(firstboot): run installer as root so rc.d service is installed
shell-deploy.sh was dropping to the clawdie user before running
just install. setup/service.ts checks isRoot() to decide whether
to install the rc.d service or generate start/stop wrappers — so
running as clawdie meant the agent was never registered with
FreeBSD's service manager and never started at boot.

Fix: run the installer as root. setup/service.ts already handles
privilege separation correctly when invoked as root: it writes
/usr/local/etc/rc.d/{agent}, adds -u {agent} to daemon args so
the running process is never root, and chowns data/logs/groups to
the agent user to prevent EACCES on first write.

Also adds DB_RUNTIME to the generated .env seed so operators can
see the jail vs host postgres option without reading the docs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 20:04:22 +02:00
..
gui Set locale/keymap defaults and move npm globals to /opt 2026-06-04 20:04:22 +02:00
rc.d feat: initial clawdie-iso skeleton 2026-06-04 20:04:21 +02:00
firstboot.sh fix(firstboot): use just install 2026-06-04 20:04:22 +02:00
gpu-detect.sh feat: initial clawdie-iso skeleton 2026-06-04 20:04:21 +02:00
integration-test.sh feat(iso): bundle clawdie-ai node_modules for offline install 2026-06-04 20:04:22 +02:00
maintenance-mode.sh Harden firstboot scripts: POSIX fixes, quoting, offline pkg path 2026-06-04 20:04:22 +02:00
MODULE-MANIFEST.md feat(iso): bundle clawdie-ai node_modules for offline install 2026-06-04 20:04:22 +02:00
shell-deploy.sh fix(firstboot): run installer as root so rc.d service is installed 2026-06-04 20:04:22 +02:00
shell-desktop.sh Unify ISO and fix GPU installation gap (Sam & ZAI) 2026-06-04 20:04:22 +02:00
shell-env.sh fix(firstboot): run installer as root so rc.d service is installed 2026-06-04 20:04:22 +02:00
shell-gpu.sh impl: Complete all 5 shell modules for v0.9.0 installer 2026-06-04 20:04:21 +02:00
shell-npm-globals.sh Set locale/keymap defaults and move npm globals to /opt 2026-06-04 20:04:22 +02:00
shell-nvidia.sh Unify ISO and fix GPU installation gap (Sam & ZAI) 2026-06-04 20:04:22 +02:00
shell-pf.sh Fix PF shell module and VPS test defaults 2026-06-04 20:04:22 +02:00
shell-pkg.sh impl: Complete all 5 shell modules for v0.9.0 installer 2026-06-04 20:04:21 +02:00
shell-ssh.sh firstboot: Add shell-ssh.sh module and restore shell-system.sh 2026-06-04 20:04:21 +02:00
shell-system.sh Set locale/keymap defaults and move npm globals to /opt 2026-06-04 20:04:22 +02:00
shell-tailscale.sh feat: recommend Tailscale with optional opt-out (Sam & Claude) 2026-06-04 20:04:22 +02:00
shell-zfs.sh Wire ZFS pool detection into firstboot pipeline (Sam & Claude) 2026-06-04 20:04:22 +02:00
vps-path-test.sh feat(iso): bundle clawdie-ai node_modules for offline install 2026-06-04 20:04:22 +02:00
zfs-pool-detect.sh Wire ZFS pool detection into firstboot pipeline (Sam & Claude) 2026-06-04 20:04:22 +02:00
zfs-pool-migrate.sh Wire ZFS pool detection into firstboot pipeline (Sam & Claude) 2026-06-04 20:04:22 +02:00