1#  SPDX-License-Identifier: LGPL-2.1-or-later
2#
3#  This file is part of systemd.
4#
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.
9
10[Unit]
11Description=Early root shell on {{DEBUGTTY}} FOR DEBUGGING ONLY
12Documentation=man:systemd-debug-generator(8)
13DefaultDependencies=no
14IgnoreOnIsolate=yes
15ConditionPathExists={{DEBUGTTY}}
16
17[Service]
18Environment=TERM=linux
19ExecStart={{SUSHELL}}
20Restart=always
21RestartSec=0
22StandardInput=tty
23TTYPath={{DEBUGTTY}}
24TTYReset=yes
25TTYVHangup=yes
26KillMode=process
27IgnoreSIGPIPE=no
28# bash ignores SIGTERM
29KillSignal=SIGHUP
30
31# Unset locale for the console getty since the console has problems
32# displaying some internationalized messages.
33UnsetEnvironment=LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
34
35[Install]
36WantedBy=sysinit.target
37