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
18 lines
432 B
Desktop File
18 lines
432 B
Desktop File
# First boot: asks for the root password and the runner's registration on the console (tty1).
|
|
[Unit]
|
|
Description=Gitea runner first-boot setup
|
|
ConditionPathExists=!/var/lib/gitea-runner/runner.env
|
|
Before=getty@tty1.service kmsconvt@tty1.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/libexec/gitea-runner-setup
|
|
StandardInput=tty
|
|
StandardOutput=tty
|
|
TTYPath=/dev/tty1
|
|
TTYReset=yes
|
|
TTYVHangup=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|