summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/systemd-pam-fix-getty-unit.patch
blob: 533a2394e96d6bc68780f6213be60c79dce4ca7a (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
36
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: systemd-37/units/getty@.service.m4
===================================================================
--- systemd-37.orig/units/getty@.service.m4
+++ systemd-37/units/getty@.service.m4
@@ -41,7 +41,7 @@
 
 [Service]
 Environment=TERM=linux
 # the VT is cleared by TTYVTDisallocate
-ExecStart=-/sbin/agetty --noclear %I 38400
+ExecStart=-/sbin/getty -L %I 115200 linux
 Type=idle
 Restart=always
 RestartSec=0
Index: systemd-37/units/serial-getty@.service.m4
===================================================================
--- systemd-37.orig/units/serial-getty@.service.m4
+++ systemd-37/units/serial-getty@.service.m4
@@ -37,7 +37,7 @@
 
 [Service]
 Environment=TERM=vt102
-ExecStart=-/sbin/agetty -s %I 115200,38400,9600
+ExecStart=-/sbin/getty -L %I 115200 vt100
 Type=idle
 Restart=always
 RestartSec=0