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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user