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>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-22 15:59:36 +00:00
1 parent 0569bce676
commit 0733ff55f3
49 files changed
+492 -509

No files matched your search

@@ -1,19 +0,0 @@
# Updates the root filesystem: writes the next version to the unused root partition.
# Verify=yes: SHA256SUMS.gpg must be signed by a key in /usr/lib/systemd/import-pubring.pgp, and
# SHA256SUMS checks each download.
[Transfer]
ProtectVersion=%A
Verify=yes
[Source]
Type=url-file
Path=https://git.plabble.org/api/packages/Job79/generic/git-runner/latest/
MatchPattern=git-runner_@v.root-%a.@u.raw.zst
[Target]
Type=partition
Path=auto
MatchPattern=git-runner_@v
MatchPartitionType=root
PartitionFlags=0
ReadOnly=1
@@ -0,0 +1,20 @@
# 10-usr.transfer writes the next version of /usr to the inactive /usr
# partition.
#
# systemd-sysupdate requires SHA256SUMS.gpg to be signed by a key in
# /usr/lib/systemd/import-pubring.pgp, and SHA256SUMS checks each download.
[Transfer]
ProtectVersion=%A
[Source]
Type=url-file
Path=https://git.plabble.org/api/packages/Job79/generic/runneros/latest/
MatchPattern=runneros_@v.usr-%a.@u.raw.zst
[Target]
Type=partition
Path=auto
MatchPattern=runneros_@v
MatchPartitionType=usr
PartitionFlags=0
ReadOnly=1
@@ -1,17 +0,0 @@
# Updates the root filesystem's dm-verity hashes, next to 10-root.transfer (see it for Verify=yes).
[Transfer]
ProtectVersion=%A
Verify=yes
[Source]
Type=url-file
Path=https://git.plabble.org/api/packages/Job79/generic/git-runner/latest/
MatchPattern=git-runner_@v.root-%a-verity.@u.raw.zst
[Target]
Type=partition
Path=auto
MatchPattern=git-runner_@v_verity
MatchPartitionType=root-verity
PartitionFlags=0
ReadOnly=1
@@ -0,0 +1,17 @@
# 11-usr-verity.transfer writes the dm-verity hashes that go with
# 10-usr.transfer, which explains how downloads are checked.
[Transfer]
ProtectVersion=%A
[Source]
Type=url-file
Path=https://git.plabble.org/api/packages/Job79/generic/runneros/latest/
MatchPattern=runneros_@v.usr-%a-verity.@u.raw.zst
[Target]
Type=partition
Path=auto
MatchPattern=runneros_@v_verity
MatchPartitionType=usr-verity
PartitionFlags=0
ReadOnly=1
@@ -1,17 +1,23 @@
# Installs the next UKI, which systemd-boot boots by default. Verify=yes: see 10-root.transfer.
# 20-uki.transfer installs the next UKI, which systemd-boot then boots by
# default. For how downloads are checked, see 10-usr.transfer.
#
# The new UKI gets three tries (boot counting: the +@l-@d in its name).
# systemd-bless-boot marks it good once a boot reaches boot-complete.target.
# If no boot does, systemd-boot goes back to the previous UKI, and with it to
# the previous /usr partition, because each UKI holds its usr hash.
[Transfer]
ProtectVersion=%A
Verify=yes
[Source]
Type=url-file
Path=https://git.plabble.org/api/packages/Job79/generic/git-runner/latest/
MatchPattern=git-runner_@v.efi
Path=https://git.plabble.org/api/packages/Job79/generic/runneros/latest/
MatchPattern=runneros_@v.efi
[Target]
Type=regular-file
Path=/EFI/Linux
PathRelativeTo=boot
MatchPattern=git-runner_@v.efi
Mode=0444
MatchPattern=runneros_@v+@l-@d.efi runneros_@v+@l.efi runneros_@v.efi
TriesLeft=3
TriesDone=0
InstancesMax=2