aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-03-30 02:16:15 +0100
committerThomas Deutschmann <whissi@gentoo.org>2019-03-30 02:27:55 +0100
commit83e20abc4088395ffe47faf428e324c33b42e894 (patch)
tree275dbe4bfe456b961ad659c1e2a5db2b17196f1b
parentIntel RST/Matrix RAID support (diff)
downloadgenkernel-83e20abc4088395ffe47faf428e324c33b42e894.tar.gz
genkernel-83e20abc4088395ffe47faf428e324c33b42e894.tar.bz2
genkernel-83e20abc4088395ffe47faf428e324c33b42e894.zip
init: fix "sh: can't access tty; job control turned off"
Link: https://busybox.net/FAQ.html#job_control Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/initrd.scripts3
1 files changed, 2 insertions, 1 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 5d3a220..b9b958b 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() {