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