84b277
From fa600b8b075ad4c717bd5f60fd3c6b5545cc75c5 Mon Sep 17 00:00:00 2001
84b277
From: Lennart Poettering <lennart@poettering.net>
84b277
Date: Wed, 18 Dec 2013 17:48:31 +0100
84b277
Subject: [PATCH] units: when spawning a getty configure TERM explicitly
84b277
84b277
This way we can make use of our logic to automatically determine an
84b277
appropriate TERM for a specific tty.
84b277
84b277
Conflicts:
84b277
	units/console-getty.service.m4.in
84b277
	units/container-getty@.service.m4.in
84b277
84b277
(cherry picked from commit ccf22d4a104e6ed2666d6c5b4031981a84787790)
84b277
84b277
Related: #1075729
84b277
---
84b277
 units/console-getty.service.m4.in | 2 +-
84b277
 units/getty@.service.m4           | 2 +-
84b277
 units/serial-getty@.service.m4    | 2 +-
84b277
 3 files changed, 3 insertions(+), 3 deletions(-)
84b277
84b277
diff --git a/units/console-getty.service.m4.in b/units/console-getty.service.m4.in
84b277
index 2fd9dd8..8ac51a4 100644
84b277
--- a/units/console-getty.service.m4.in
84b277
+++ b/units/console-getty.service.m4.in
84b277
@@ -15,7 +15,7 @@ After=rc-local.service
84b277
 Before=getty.target
84b277
 
84b277
 [Service]
84b277
-ExecStart=-/sbin/agetty --noclear -s console 115200,38400,9600
84b277
+ExecStart=-/sbin/agetty --noclear --keep-baud console 115200,38400,9600 $TERM
84b277
 Type=idle
84b277
 Restart=always
84b277
 RestartSec=0
84b277
diff --git a/units/getty@.service.m4 b/units/getty@.service.m4
84b277
index 253da85..aa853b8 100644
84b277
--- a/units/getty@.service.m4
84b277
+++ b/units/getty@.service.m4
84b277
@@ -27,7 +27,7 @@ ConditionPathExists=/dev/tty0
84b277
 
84b277
 [Service]
84b277
 # the VT is cleared by TTYVTDisallocate
84b277
-ExecStart=-/sbin/agetty --noclear %I
84b277
+ExecStart=-/sbin/agetty --noclear %I $TERM
84b277
 Type=idle
84b277
 Restart=always
84b277
 RestartSec=0
84b277
diff --git a/units/serial-getty@.service.m4 b/units/serial-getty@.service.m4
84b277
index aea078f..e94cdb4 100644
84b277
--- a/units/serial-getty@.service.m4
84b277
+++ b/units/serial-getty@.service.m4
84b277
@@ -22,7 +22,7 @@ Before=getty.target
84b277
 IgnoreOnIsolate=yes
84b277
 
84b277
 [Service]
84b277
-ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600
84b277
+ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600 $TERM
84b277
 Type=idle
84b277
 Restart=always
84b277
 RestartSec=0