2020-11-09 13:23:58 +09:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 17:35:03 +01:00
#
2012-06-28 12:13:52 +02: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 16:03:33 +02:00
[Unit]
2021-05-16 11:55:36 +02:00
Description = Early root shell on {{DEBUGTTY}} FOR DEBUGGING ONLY
2017-12-24 16:51:45 +01:00
Documentation = man:systemd-debug-generator(8)
2012-06-07 16:03:33 +02:00
DefaultDependencies = no
IgnoreOnIsolate = yes
2021-05-16 11:55:36 +02:00
ConditionPathExists = {{DEBUGTTY}}
2023-05-19 15:58:18 +02:00
After = systemd-vconsole-setup.service
2012-06-07 16:03:33 +02:00
[Service]
Environment = TERM=linux
2021-05-16 11:55:36 +02:00
ExecStart = {{SUSHELL}}
2012-06-07 16:03:33 +02:00
Restart = always
RestartSec = 0
StandardInput = tty
2021-05-16 11:55:36 +02:00
TTYPath = {{DEBUGTTY}}
2012-06-07 16:03:33 +02: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 12:19:02 +02: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 16:03:33 +02:00
[Install]
WantedBy = sysinit.target