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

@@ -0,0 +1,30 @@
# factory-etc.conf links what the image needs from /usr/share/factory/etc
# (mkosi.finalize) into the empty /etc at boot, so updates to /usr take effect
# in /etc too. The rest of the factory is unused package config. /etc itself
# holds what the machine writes: passwd, shadow, group, machine-id, ld.so.cache,
# /etc/systemd and the networks of podman (/etc/containers/networks). Podman
# reads its own config from /usr/share/containers. systemd's own etc.conf sets
# up os-release, nsswitch.conf and pam.d.
#
# /etc/systemd is filled from the presets at first boot, by PID 1.
# gitea-runner holds the config of the runner.
L /etc/gitea-runner
# authselect holds the PAM files that /etc/pam.d links to.
L /etc/authselect
L /etc/security
L /etc/environment
L /etc/login.defs
L /etc/shells
# pki and ssl hold the CA certificates, and crypto-policies the TLS settings.
L /etc/pki
L /etc/ssl
L /etc/crypto-policies
L /etc/bashrc
L /etc/profile
L /etc/profile.d
L /etc/protocols
L /etc/services
L /etc/hostname
@@ -1,6 +1,7 @@
# The runner's directories, and a clean container storage on every boot.
# State: holds the registration (.runner) and the actions cache.
d /var/lib/gitea-runner 0700 root root -
# Wipe all job containers, volumes and images on every boot. The shared base images
# (/var/lib/containers/base-images) stay; gitea-runner-images.service updates them.
# gitea-runner.conf makes the state directory of the runner, which holds its
# registration (/etc/gitea-runner/config.yaml).
d /var/lib/gitea-runner 0700
# The storage of root's podman is wiped at every boot, so images and leftovers
# of jobs don't pile up. Jobs pull their images again.
R /var/lib/containers/storage