actions/checkout needs Node.js in every job and fetches the action from
GitHub. Four lines of git need neither.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gitea-runner clones the actions that jobs use with git, so the image
needs git-core. With it and Node.js in the job, actions/checkout works,
which replaces the hand-written git fetch. gitea-runner.service pulls the
image of the linux label before it starts, so the first job after a
boot doesn't wait 27 seconds for it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mkosi genkey won't replace mkosi.crt, and the key options on the command
line miss the PCR and verity keys. mkosi already pulls in zstd and
qemu-img, so the workflow doesn't install them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
mkosi signs systemd-boot and the UKI with our own key (mkosi.crt; the private
key is the SECUREBOOT_KEY secret, which the os workflow writes to mkosi.key)
and puts the keys on the ESP. systemd-boot enrolls them at first boot if the
firmware is in setup mode: in Proxmox, an EFI disk without pre-enrolled keys.
Hosts installed before this keep their unsigned systemd-boot (updates don't
replace it), so they boot as before, without Secure Boot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The os workflow signs SHA256SUMS with the SIGNING_KEY secret and publishes
SHA256SUMS.gpg next to it. systemd-sysupdate now verifies it (Verify=yes)
against import-pubring.pgp, so hosts only install updates we built.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The os workflow now runs on linux, our job image, instead of plain Fedora; it
already has git, so only mkosi is installed. If a change breaks the job image,
build the fix locally.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each build replaces version "latest" of the generic package git-runner: one
delete and one upload per file, with no release ids or pruning. Updates are no
longer atomic: while a build uploads, runners find no update and retry later.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gitea serves releases/download/latest/ from the newest published release, so
instead of replacing assets in a fixed "latest" release, each build uploads to
a draft and publishes it, then removes all but the newest 3 releases. The qcow2
is now published on every build, as latest only looks at the newest release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gitea-runner user had root's podman socket, which is root access anyway, so it bought no
isolation. Run it as root and drop the user, the podman.socket drop-in and the /run/podman
permission workaround.
The workflow publishes in one step with small helpers, and filters assets with awk, which,
unlike grep, does not fail the step when nothing matches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V27snor4EJUATK7VoiKne6
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
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>