Commit Graph
5 Commits
Author SHA1 Message Date
Job79andClaude Opus 5.5 0733ff55f3 Rewrite on the layout of agentos
os / os (push) Failing after 29s
Start again from agentos: a read-only, verity-checked /usr with A/B
updates, and a TPM-encrypted btrfs root made at first boot that holds
/etc and /var. On top of that the runner: gitea-runner from gitea.com,
a path unit that starts it once registered, and a drain before update
reboots. Jobs run in plain Fedora on root's podman.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:59:36 +00:00
Job79andClaude Opus 5.5 7df16dce11 Make /var xfs
xfs has no fsck to run at boot (it replays its log on mount), so the fstab pass
is 0. Existing runners keep their ext4 /var, which this fstab no longer mounts:
reinstall them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:52:13 +01:00
Job79andClaude Opus 5.5 b0a49de3e6 Seal /etc: read-only root with /etc and /usr, state on /var
The root filesystem (/etc and /usr) is now one read-only erofs partition behind dm-verity,
updated A/B as a whole, so /etc can no longer drift from the image (stale CA certificates,
frozen Fedora defaults). All state lives on a new /var partition, mounted by /etc/fstab.

What used to be written to /etc at runtime:
- machine ID: from the VM's firmware UUID (systemd.machine_id=firmware); /etc/machine-id is
  empty, so no boot counts as the first.
- root password: gitea-runner-setup writes a shadow file to /var/lib/shadow, which
  etc-shadow.mount puts over /etc/shadow.
- hostname and runner.env: runner.env moves to /var/lib/gitea-runner and holds the runner's
  name; gitea-runner.service sets it as the (transient) hostname, and DHCP no longer does.

Hosts installed before this change must be reinstalled: updates can't change the partition
layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V27snrGfdvwU7pMNBiDpHv
2026-11-14 12:12:10 +01:00
Job79andClaude Opus 5.5 dfa5d69b44 No repo secrets: unsigned image, updates as release assets, job image built by mkosi
os / os (push) Successful in 3m51s
The workflow's own token can't write packages and repo secrets can't be
set, so: build unsigned, publish the sysupdate files as assets of the
"latest" release, and build the job image with mkosi and ship it in /usr
instead of pushing it to a registry. Partition UUIDs are now part of the
update file names, so updated /usr partitions keep the UUIDs usrhash=
expects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 23:21:42 +01:00
Job79andClaude Opus 5.5 d4eebeb01f mkosi-based Gitea runner OS and job image
os / os (push) Failing after 45s
job / job (push) Failing after 1m3s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 22:43:46 +01:00