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
This commit is contained in:
1 parent
fd1ef420cd
commit
5f2a5c2b23
6 files changed
+28
-21
No files matched your search
@@ -1,17 +0,0 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user