Files
runneros/mkosi.extra/usr/lib/systemd/system/gitea-runner-setup@.service
T
Job79andClaude Opus 5.5 5f2a5c2b23 First-boot setup on the serial console too
The setup asked only on the screen (tty1); it now also asks on the serial console (ttyS0), so a
VM can be set up from a serial terminal or a script. Whichever console is answered first stops
the setup on the other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V27snprgiQMRMB6RRDNjCX
2026-11-14 12:21:50 +00:00

21 lines
656 B
Desktop File

# First boot: asks for the root password and the runner's registration, on the screen (tty1) and
# the serial console (ttyS0) at once; whichever is answered first stops the other.
[Unit]
Description=Gitea runner first-boot setup on %I
ConditionPathExists=!/var/lib/gitea-runner/runner.env
Before=getty@%i.service serial-getty@%i.service kmsconvt@%i.service
[Service]
Type=oneshot
ExecStart=/usr/libexec/gitea-runner-setup
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
# Answering on one console stops the setup on the other (SIGTERM), which is no failure.
SuccessExitStatus=SIGTERM
[Install]
WantedBy=multi-user.target