summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--units/getty@.service.m43
-rw-r--r--units/serial-getty@.service.m43
2 files changed, 2 insertions, 4 deletions
diff --git a/units/getty@.service.m4 b/units/getty@.service.m4
index b5875ce491..810c23fc12 100644
--- a/units/getty@.service.m4
+++ b/units/getty@.service.m4
@@ -43,9 +43,8 @@ IgnoreOnIsolate=yes
ConditionPathExists=/dev/tty0
[Service]
-Environment=TERM=linux
# the VT is cleared by TTYVTDisallocate
-ExecStart=-/sbin/agetty --noclear %I 38400
+ExecStart=-/sbin/agetty --noclear %I 38400 linux
Type=idle
Restart=always
RestartSec=0
diff --git a/units/serial-getty@.service.m4 b/units/serial-getty@.service.m4
index a6bbd714e6..c411dc1121 100644
--- a/units/serial-getty@.service.m4
+++ b/units/serial-getty@.service.m4
@@ -39,8 +39,7 @@ Before=getty.target
IgnoreOnIsolate=yes
[Service]
-Environment=TERM=vt102
-ExecStart=-/sbin/agetty -s %I 115200,38400,9600
+ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
Type=idle
Restart=always
RestartSec=0