summaryrefslogtreecommitdiffstats
path: root/server/modules
diff options
context:
space:
mode:
authorSimon Rettberg2013-12-16 17:01:13 +0100
committerSimon Rettberg2013-12-16 17:01:13 +0100
commitdd666110af3422337bc7bea021d22ee77fc9ef62 (patch)
tree4d75cfa40010d94251b9532fbbc386306ba86d7a /server/modules
parent[doc] setup_howto: Pointer to other setup howtos and var descriptions (diff)
downloadtm-scripts-dd666110af3422337bc7bea021d22ee77fc9ef62.tar.gz
tm-scripts-dd666110af3422337bc7bea021d22ee77fc9ef62.tar.xz
tm-scripts-dd666110af3422337bc7bea021d22ee77fc9ef62.zip
debug-shell module that spwans a root shell on tty9 after switching to stage3.2
Diffstat (limited to 'server/modules')
-rw-r--r--server/modules/debug-shell/etc/systemd/system/debug-shell.service32
l---------server/modules/debug-shell/etc/systemd/system/sysinit.target.wants/debug-shell.service1
2 files changed, 33 insertions, 0 deletions
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