summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service14
1 files changed, 10 insertions, 4 deletions
diff --git a/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service
index 15af16a9f8..542b905795 100644
--- a/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service
+++ b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service
@@ -1,3 +1,5 @@
1# SPDX-License-Identifier: LGPL-2.1+
2#
1# This file is part of systemd. 3# This file is part of systemd.
2# 4#
3# systemd is free software; you can redistribute it and/or modify it 5# systemd is free software; you can redistribute it and/or modify it
@@ -9,9 +11,8 @@
9Description=Serial Getty on %I 11Description=Serial Getty on %I
10Documentation=man:agetty(8) man:systemd-getty-generator(8) 12Documentation=man:agetty(8) man:systemd-getty-generator(8)
11Documentation=http://0pointer.de/blog/projects/serial-console.html 13Documentation=http://0pointer.de/blog/projects/serial-console.html
12PartOf=dev-%i.device 14BindsTo=dev-%i.device
13ConditionPathExists=/dev/%i 15After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
14After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
15After=rc-local.service 16After=rc-local.service
16 17
17# If additional gettys are spawned during boot then we should make 18# If additional gettys are spawned during boot then we should make
@@ -20,12 +21,17 @@ After=rc-local.service
20Before=getty.target 21Before=getty.target
21IgnoreOnIsolate=yes 22IgnoreOnIsolate=yes
22 23
24# IgnoreOnIsolate causes issues with sulogin, if someone isolates
25# rescue.target or starts rescue.service from multi-user.target or
26# graphical.target.
27Conflicts=rescue.service
28Before=rescue.service
29
23[Service] 30[Service]
24Environment="TERM=xterm" 31Environment="TERM=xterm"
25ExecStart=-/sbin/agetty -8 -L %I @BAUDRATE@ $TERM 32ExecStart=-/sbin/agetty -8 -L %I @BAUDRATE@ $TERM
26Type=idle 33Type=idle
27Restart=always 34Restart=always
28RestartSec=0
29UtmpIdentifier=%I 35UtmpIdentifier=%I
30TTYPath=/dev/%I 36TTYPath=/dev/%I
31TTYReset=yes 37TTYReset=yes