# 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 ImportCredential=agent.* 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