Give every file a header (title, empty line, explanation), wrap comments at 80 columns and keep them to the why. Only comments change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
633 B
Desktop File
25 lines
633 B
Desktop File
# First-boot setup
|
|
#
|
|
# Runs /usr/libexec/agent-setup on the screen (tty1) and the serial console
|
|
# (ttyS0) at once, so it can be answered on either. Whichever is answered first
|
|
# stops the other.
|
|
[Unit]
|
|
Description=Agent first-boot setup on %I
|
|
ConditionPathExists=!/var/lib/agent/hostname
|
|
After=systemd-tmpfiles-setup.service
|
|
Before=getty@%i.service serial-getty@%i.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/libexec/agent-setup
|
|
StandardInput=tty
|
|
StandardOutput=tty
|
|
TTYPath=/dev/%I
|
|
TTYReset=yes
|
|
TTYVHangup=yes
|
|
# Being stopped by the other console is not a failure.
|
|
SuccessExitStatus=SIGTERM
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|