1 # This file is part of systemd.
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
9 Description=Console Getty
10 Documentation=man:agetty(8) man:systemd-getty-generator(8)
11 After=systemd-user-sessions.service plymouth-quit-wait.service
12 m4_ifdef(`HAVE_SYSV_COMPAT',
13 After=rc-local.service getty-pre.target
17 # OCI containers may be run without a console
18 ConditionPathExists=/dev/console
21 # The '-o' option value tells agetty to replace 'login' arguments with an
22 # option to preserve environment (-p), followed by '--' for safety, and then
23 # the entered username.
24 ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud console 115200,38400,9600 $TERM