mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
units: when spawning a getty configure TERM explicitly
This way we can make use of our logic to automatically determine an appropriate TERM for a specific tty.
This commit is contained in:
parent
7cae38c4fa
commit
ccf22d4a10
@ -15,7 +15,7 @@ After=rc-local.service
|
||||
Before=getty.target
|
||||
|
||||
[Service]
|
||||
ExecStart=-/sbin/agetty --noclear --keep-baud console 115200,38400,9600
|
||||
ExecStart=-/sbin/agetty --noclear --keep-baud console 115200,38400,9600 $TERM
|
||||
Type=idle
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
|
@ -16,7 +16,7 @@ Before=getty.target
|
||||
IgnoreOnIsolate=yes
|
||||
|
||||
[Service]
|
||||
ExecStart=-/sbin/agetty --noclear --keep-baud pts/%I 115200,38400,9600
|
||||
ExecStart=-/sbin/agetty --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
|
||||
Type=idle
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
|
@ -27,7 +27,7 @@ ConditionPathExists=/dev/tty0
|
||||
|
||||
[Service]
|
||||
# the VT is cleared by TTYVTDisallocate
|
||||
ExecStart=-/sbin/agetty --noclear %I
|
||||
ExecStart=-/sbin/agetty --noclear %I $TERM
|
||||
Type=idle
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
|
@ -22,7 +22,7 @@ Before=getty.target
|
||||
IgnoreOnIsolate=yes
|
||||
|
||||
[Service]
|
||||
ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600
|
||||
ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600 $TERM
|
||||
Type=idle
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
|
Loading…
x
Reference in New Issue
Block a user