units: avoid redundant VT clearing by agetty
TTYVTDisallocate=yes already clears the VT. agetty does not need to do it again. Run it with --noclear. Felix Miata found the double clearing confusing in this bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=828007 Add a comment explaining what clears the VT.
This commit is contained in:
parent
cae544bcdb
commit
3305d6806d
|
@ -41,7 +41,8 @@ ConditionPathExists=/dev/tty0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=TERM=linux
|
Environment=TERM=linux
|
||||||
ExecStart=-/sbin/agetty %I 38400
|
# the VT is cleared by TTYVTDisallocate
|
||||||
|
ExecStart=-/sbin/agetty --noclear %I 38400
|
||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=0
|
RestartSec=0
|
||||||
|
|
Loading…
Reference in a new issue