From dd666110af3422337bc7bea021d22ee77fc9ef62 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 16 Dec 2013 17:01:13 +0100 Subject: debug-shell module that spwans a root shell on tty9 after switching to stage3.2 --- .../etc/systemd/system/debug-shell.service | 32 ++++++++++++++++++++++ .../sysinit.target.wants/debug-shell.service | 1 + 2 files changed, 33 insertions(+) create mode 100644 server/modules/debug-shell/etc/systemd/system/debug-shell.service create mode 120000 server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service (limited to 'server/modules/debug-shell') diff --git a/server/modules/debug-shell/etc/systemd/system/debug-shell.service b/server/modules/debug-shell/etc/systemd/system/debug-shell.service new file mode 100644 index 00000000..6d50b3bd --- /dev/null +++ b/server/modules/debug-shell/etc/systemd/system/debug-shell.service @@ -0,0 +1,32 @@ +# 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. + +[Unit] +Description=Early root shell on tty9 FOR DEBUGGING ONLY +Documentation=man:sushell(8) +DefaultDependencies=no +IgnoreOnIsolate=yes + +[Service] +ExecStart=/bin/sh +Restart=always +RestartSec=0 +StandardInput=tty +TTYPath=/dev/tty9 +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. +Environment=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= + +[Install] +WantedBy=sysinit.target diff --git a/server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service b/server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service new file mode 120000 index 00000000..699b56ac --- /dev/null +++ b/server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service @@ -0,0 +1 @@ +../debug-shell.service \ No newline at end of file -- cgit v1.2.3-55-g7522