feat: root adds the ssh keys, mkosi ssh for the test VM
The setup no longer asks for an ssh key. Root logs in on the console and adds keys for claude and root to /var/lib/agent. Root may log in with ssh, and its home is a tmpfs that is wiped at every boot. The test VM uses mkosi ssh instead of a forwarded port, so the agent.ssh-key credential is gone. Also mount /var with noatime, move STYLE.md into AGENTS.md and rewrite comments to start with the name of what they describe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
15 files changed
+218
-180
No files matched your search
@@ -3,13 +3,14 @@
|
||||
# What survives a reboot and what doesn't. Claude can only write to the wiped
|
||||
# directories, /tmp and its own config.
|
||||
|
||||
# Kept: the setup answers, the ssh host key and Claude's login. agent-boot
|
||||
# wipes the rest of Claude's config.
|
||||
# /var/lib/agent keeps the setup answers, the ssh keys and Claude's login.
|
||||
# agent-boot wipes the rest of Claude's config.
|
||||
d /var/lib/agent 0755 root root -
|
||||
d /var/lib/agent/claude 0700 claude claude -
|
||||
# Wiped at every boot (D): Claude's home, with its podman storage, and
|
||||
# temporary files.
|
||||
# D wipes Claude's home, with its podman storage, and temporary files at every
|
||||
# boot.
|
||||
D /var/home/claude 0700 claude claude -
|
||||
D /var/tmp 1777 root root -
|
||||
# Start Claude's user manager at boot, for rootless podman and its own services.
|
||||
# linger starts Claude's user manager at boot, for rootless podman and its own
|
||||
# services.
|
||||
f /var/lib/systemd/linger/claude
|
||||
Reference in new issue
Block a user