summaryrefslogtreecommitdiffstats
path: root/units/serial-getty@.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-07-11 16:18:49 +0200
committerLennart Poettering <lennart@poettering.net>2024-07-19 11:44:04 +0200
commit56ea3c262cd08cf9c2264ee1009326ff9a25a975 (patch)
treeb8c0c76dd39dfc247ec3b502fff5e437e65cea2b /units/serial-getty@.service.in
parentexec-invoke: move terminal initialization a bit (diff)
downloadsystemd-56ea3c262cd08cf9c2264ee1009326ff9a25a975.tar.xz
systemd-56ea3c262cd08cf9c2264ee1009326ff9a25a975.zip
units: bring agetty command lines back into sync
Let's always rely on our own TTY reset logic and tty disallocation/clear screen logic, thus always pass --noclear and --noreset. Also, bring the list of baud rates to try into sync for console-getty and serial-getty (the former might or might not be connected to rs232, we can't know, hence assume the worst, and copy what serial-getty@.service does)
Diffstat (limited to 'units/serial-getty@.service.in')
-rw-r--r--units/serial-getty@.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/serial-getty@.service.in b/units/serial-getty@.service.in
index 6bf101eac9..5669b19aff 100644
--- a/units/serial-getty@.service.in
+++ b/units/serial-getty@.service.in
@@ -33,7 +33,7 @@ Before=rescue.service
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
-ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,57600,38400,9600 - $TERM
+ExecStart=-/sbin/agetty -o '-p -- \\u' --noreset --noclear --keep-baud 115200,57600,38400,9600 - ${TERM}
Type=idle
Restart=always
UtmpIdentifier=%I