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:
Job79andClaude Opus 5.5 committed 2026-11-19 19:10:54 +01:00
1 parent 8aeb448936
commit db8fb0d5a4
15 files changed
+218 -180

No files matched your search

+3 -4
View File
@@ -15,8 +15,8 @@ on:
push:
branches: [main]
schedule:
- cron: "0 2 * * 0" # weekly (Sunday), picks up package updates
workflow_dispatch: # run by hand, e.g. for a CVE
- cron: "0 2 * * 0"
workflow_dispatch:
jobs:
os:
@@ -38,8 +38,7 @@ jobs:
- name: Compress
working-directory: mkosi.output
run: |
zstd -q --rm -T0 -9 agent_*.root-*.raw
# -m 16 -W: compress on several cores instead of one
zstd -q --rm -9 agent_*.root-*.raw
qemu-img convert -c -m 16 -W -O qcow2 "$(basename agent_*.efi .efi).raw" agent.qcow2
sha256sum agent_*.efi agent_*.root-*.raw.zst > SHA256SUMS
- name: Sign