aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'defaults/initrd.scripts')
-rw-r--r--defaults/initrd.scripts3
1 files changed, 2 insertions, 1 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 5d3a220b..b9b958b1 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1567,7 +1567,8 @@ setup_md_device() {
do_rundebugshell() {
good_msg 'Type "exit" to continue with normal bootup.'
- [ -x /bin/sh ] && /bin/sh || /bin/ash
+ [ -x /bin/sh ] && SH=/bin/sh || SH=/bin/ash
+ setsid ${SH} -c "exec cttyhack ${SH} --login"
}
rundebugshell() {