systemd unit: use StandardInput=null to work in serial console mode
authorMichael Prokop <mika@grml.org>
Fri, 2 Sep 2022 15:02:07 +0000 (17:02 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 2 Sep 2022 15:15:35 +0000 (17:15 +0200)
commit1e268ffe4f787e0fbe91b77792d6662d009e0a31
treef823152922f76f987ab0c793240fc1980fcae3e8
parentaf578f247f401edc1f56039a2528b397c6a467bb
systemd unit: use StandardInput=null to work in serial console mode

We shouldn't need standard input connected to a TTY, but when booting
in serial console mode (like `console=tty1 console=ttyS0,9600n8`), then
grml-autoconfig service fails with:

| systemd[1]: Starting Grml boot option support...
| systemd[1]: grml-autoconfig.service: Main process exited, code=exited, status=1/FAILURE
| systemd[1]: grml-autoconfig.service: Failed with result 'exit-code'.
| systemd[1]: Failed to start Grml boot option support.
| systemd[1]: grml-autoconfig.service: Consumed 2.475s CPU time.

Replacing `StandardInput=tty` with `StandardInput=null` fixes
this, while non-serial console mode seems to continue working fine.

Closes: https://github.com/grml/grml/issues/176
systemd/grml-autoconfig.service