mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
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)
This commit is contained in:
parent
628c214656
commit
56ea3c262c
@ -20,9 +20,10 @@ Before=getty.target
|
|||||||
ConditionPathExists=/dev/console
|
ConditionPathExists=/dev/console
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# The '-o' option value tells agetty to replace 'login' arguments with an option to preserve environment (-p),
|
# The '-o' option value tells agetty to replace 'login' arguments with an
|
||||||
# followed by '--' for safety, and then the entered username.
|
# option to preserve environment (-p), followed by '--' for safety, and then
|
||||||
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud - 115200,38400,9600 $TERM
|
# the entered username.
|
||||||
|
ExecStart=-/sbin/agetty -o '-p -- \\u' --noreset --noclear --keep-baud 115200,57600,38400,9600 - ${TERM}
|
||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
UtmpIdentifier=cons
|
UtmpIdentifier=cons
|
||||||
|
@ -25,9 +25,10 @@ Conflicts=rescue.service
|
|||||||
Before=rescue.service
|
Before=rescue.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# The '-o' option value tells agetty to replace 'login' arguments with an option to preserve environment (-p),
|
# The '-o' option value tells agetty to replace 'login' arguments with an
|
||||||
# followed by '--' for safety, and then the entered username.
|
# option to preserve environment (-p), followed by '--' for safety, and then
|
||||||
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear - $TERM
|
# the entered username.
|
||||||
|
ExecStart=-/sbin/agetty -o '-p -- \\u' --noreset --noclear - ${TERM}
|
||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=0
|
RestartSec=0
|
||||||
|
@ -34,11 +34,10 @@ Before=rescue.service
|
|||||||
ConditionPathExists=/dev/tty0
|
ConditionPathExists=/dev/tty0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# the VT is cleared by TTYVTDisallocate
|
|
||||||
# The '-o' option value tells agetty to replace 'login' arguments with an
|
# The '-o' option value tells agetty to replace 'login' arguments with an
|
||||||
# option to preserve environment (-p), followed by '--' for safety, and then
|
# option to preserve environment (-p), followed by '--' for safety, and then
|
||||||
# the entered username.
|
# the entered username.
|
||||||
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear - $TERM
|
ExecStart=-/sbin/agetty -o '-p -- \\u' --noreset --noclear - ${TERM}
|
||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=0
|
RestartSec=0
|
||||||
|
@ -33,7 +33,7 @@ Before=rescue.service
|
|||||||
# The '-o' option value tells agetty to replace 'login' arguments with an
|
# The '-o' option value tells agetty to replace 'login' arguments with an
|
||||||
# option to preserve environment (-p), followed by '--' for safety, and then
|
# option to preserve environment (-p), followed by '--' for safety, and then
|
||||||
# the entered username.
|
# 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
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
UtmpIdentifier=%I
|
UtmpIdentifier=%I
|
||||||
|
Loading…
Reference in New Issue
Block a user