2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 19:35:03 +03:00
#
2012-06-28 14:13:52 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
2012-06-07 18:03:33 +04:00
[Unit]
2021-05-16 12:55:36 +03:00
Description = Early root shell on {{DEBUGTTY}} FOR DEBUGGING ONLY
2017-12-24 18:51:45 +03:00
Documentation = man:systemd-debug-generator(8)
2012-06-07 18:03:33 +04:00
DefaultDependencies = no
IgnoreOnIsolate = yes
2021-05-16 12:55:36 +03:00
ConditionPathExists = {{DEBUGTTY}}
2023-05-19 16:58:18 +03:00
After = systemd-vconsole-setup.service
2012-06-07 18:03:33 +04:00
[Service]
Environment = TERM=linux
2021-05-16 12:55:36 +03:00
ExecStart = {{SUSHELL}}
2012-06-07 18:03:33 +04:00
Restart = always
RestartSec = 0
StandardInput = tty
2021-05-16 12:55:36 +03:00
TTYPath = {{DEBUGTTY}}
2012-06-07 18:03:33 +04:00
TTYReset = yes
TTYVHangup = yes
KillMode = process
IgnoreSIGPIPE = no
# bash ignores SIGTERM
KillSignal = SIGHUP
# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
2017-09-10 13:19:02 +03:00
UnsetEnvironment = 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
2012-06-07 18:03:33 +04:00
[Install]
WantedBy = sysinit.target