1 # SPDX-License-Identifier: LGPL-2.1+
3 # This file is part of systemd.
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
11 Description=Serial Getty on %I
12 Documentation=man:agetty(8) man:systemd-getty-generator(8)
13 Documentation=http://0pointer.de/blog/projects/serial-console.html
15 After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
16 m4_ifdef(`HAVE_SYSV_COMPAT',
17 After=rc-local.service
20 # If additional gettys are spawned during boot then we should make
21 # sure that this is synchronized before getty.target, even though
22 # getty.target didn't actually pull it in.
26 # IgnoreOnIsolate causes issues with sulogin, if someone isolates
27 # rescue.target or starts rescue.service from multi-user.target or
29 Conflicts=rescue.service
33 # The '-o' option value tells agetty to replace 'login' arguments with an
34 # option to preserve environment (-p), followed by '--' for safety, and then
35 # the entered username.
36 ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM
43 m4_ifdef(`ENABLE_LOGIND',,