diff options
author | Otavio Salvador <otavio.salvador@gmail.com> | 2020-06-12 14:30:44 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-26 18:26:48 +0100 |
commit | 94e5d195cb64bee5f7eb257b46370ce189395661 (patch) | |
tree | 8000aa54d6b9901df06d6df3f98d856fc3d46fe1 /meta/recipes-core | |
parent | 7af3bf8bf6f110545919f431af858590cea9382a (diff) | |
download | poky-94e5d195cb64bee5f7eb257b46370ce189395661.tar.gz |
systemd: Sync systemd-serialgetty@.service with upstream
The systemd upstream has been doing some improvements in the service
which were not in sync, with the forked file. Mainly:
- Use BindsTo to bind the service with the required serial device
- Add of getty-pre.target as dependency so we can run things before
getty@.service and serial-getty@.service
- Add conflicts to rescue to avoid issues with sulogin
We did not change the ExecStart and Environment fields so we don't have
side effects of this change.
(From OE-Core rev: e6e2cabc33ab30d38e31ef830f7bc5e3cd07b6d5)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 63bbff61b78c651339c4b18d8376187379ec3b3c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service | 14 |
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 @@ | |||
9 | Description=Serial Getty on %I | 11 | Description=Serial Getty on %I |
10 | Documentation=man:agetty(8) man:systemd-getty-generator(8) | 12 | Documentation=man:agetty(8) man:systemd-getty-generator(8) |
11 | Documentation=http://0pointer.de/blog/projects/serial-console.html | 13 | Documentation=http://0pointer.de/blog/projects/serial-console.html |
12 | PartOf=dev-%i.device | 14 | BindsTo=dev-%i.device |
13 | ConditionPathExists=/dev/%i | 15 | After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target |
14 | After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service | ||
15 | After=rc-local.service | 16 | After=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 | |||
20 | Before=getty.target | 21 | Before=getty.target |
21 | IgnoreOnIsolate=yes | 22 | IgnoreOnIsolate=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. | ||
27 | Conflicts=rescue.service | ||
28 | Before=rescue.service | ||
29 | |||
23 | [Service] | 30 | [Service] |
24 | Environment="TERM=xterm" | 31 | Environment="TERM=xterm" |
25 | ExecStart=-/sbin/agetty -8 -L %I @BAUDRATE@ $TERM | 32 | ExecStart=-/sbin/agetty -8 -L %I @BAUDRATE@ $TERM |
26 | Type=idle | 33 | Type=idle |
27 | Restart=always | 34 | Restart=always |
28 | RestartSec=0 | ||
29 | UtmpIdentifier=%I | 35 | UtmpIdentifier=%I |
30 | TTYPath=/dev/%I | 36 | TTYPath=/dev/%I |
31 | TTYReset=yes | 37 | TTYReset=yes |