Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
Date: Sat, 30 Mar 2019 01:28:47
Message-Id: 1553909275.83e20abc4088395ffe47faf428e324c33b42e894.whissi@gentoo
1 commit: 83e20abc4088395ffe47faf428e324c33b42e894
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 30 01:16:15 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 30 01:27:55 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=83e20abc
7
8 init: fix "sh: can't access tty; job control turned off"
9
10 Link: https://busybox.net/FAQ.html#job_control
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 defaults/initrd.scripts | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
17 index 5d3a220..b9b958b 100644
18 --- a/defaults/initrd.scripts
19 +++ b/defaults/initrd.scripts
20 @@ -1567,7 +1567,8 @@ setup_md_device() {
21
22 do_rundebugshell() {
23 good_msg 'Type "exit" to continue with normal bootup.'
24 - [ -x /bin/sh ] && /bin/sh || /bin/ash
25 + [ -x /bin/sh ] && SH=/bin/sh || SH=/bin/ash
26 + setsid ${SH} -c "exec cttyhack ${SH} --login"
27 }
28
29 rundebugshell() {