summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/systemd-pam-fix-getty-unit.patch
blob: 9b4c940984363e1108eda18e37a13604c6ebad92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Prefer getty to agetty in console setup systemd units

Upstream-Status: Inappropriate [configuration specific]
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 units/getty@.service.m4        |    2 +-
 units/serial-getty@.service.m4 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: git/units/getty@.service.m4
===================================================================
--- git.orig/units/getty@.service.m4	2014-03-15 08:16:17.000000000 -0700
+++ git/units/getty@.service.m4	2014-03-15 08:21:11.007695825 -0700
@@ -27,7 +27,7 @@
 
 [Service]
 # the VT is cleared by TTYVTDisallocate
-ExecStart=-/sbin/agetty --noclear %I $TERM
+ExecStart=-/sbin/getty -L %I $TERM
 Type=idle
 Restart=always
 RestartSec=0
Index: git/units/serial-getty@.service.m4
===================================================================
--- git.orig/units/serial-getty@.service.m4	2014-03-15 08:16:17.000000000 -0700
+++ git/units/serial-getty@.service.m4	2014-03-15 08:22:31.291697331 -0700
@@ -22,7 +22,7 @@
 IgnoreOnIsolate=yes
 
 [Service]
-ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
+ExecStart=-/sbin/getty -L 115200 %I $TERM
 Type=idle
 Restart=always
 RestartSec=0