units: agetty overrides TERM
Environment=TERM=... has no effect on agetty who sets it by itself. To really set TERM to a specified value, it has to be given on the command line. https://bugzilla.redhat.com/show_bug.cgi?id=870622
This commit is contained in:
parent
fd09c93de9
commit
2161de72c5
|
@ -43,9 +43,8 @@ IgnoreOnIsolate=yes
|
||||||
ConditionPathExists=/dev/tty0
|
ConditionPathExists=/dev/tty0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=TERM=linux
|
|
||||||
# the VT is cleared by TTYVTDisallocate
|
# the VT is cleared by TTYVTDisallocate
|
||||||
ExecStart=-/sbin/agetty --noclear %I 38400
|
ExecStart=-/sbin/agetty --noclear %I 38400 linux
|
||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=0
|
RestartSec=0
|
||||||
|
|
|
@ -39,8 +39,7 @@ Before=getty.target
|
||||||
IgnoreOnIsolate=yes
|
IgnoreOnIsolate=yes
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=TERM=vt102
|
ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
|
||||||
ExecStart=-/sbin/agetty -s %I 115200,38400,9600
|
|
||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=0
|
RestartSec=0
|
||||||
|
|
Loading…
Reference in New Issue