diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-03-30 02:16:15 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-03-30 02:27:55 +0100 |
commit | 83e20abc4088395ffe47faf428e324c33b42e894 (patch) | |
tree | 275dbe4bfe456b961ad659c1e2a5db2b17196f1b | |
parent | Intel RST/Matrix RAID support (diff) | |
download | genkernel-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.scripts | 3 |
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() { |