From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1080286-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id AD6AC138336
	for <garchives@archives.gentoo.org>; Sat, 30 Mar 2019 01:28:47 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 84D61E08CD;
	Sat, 30 Mar 2019 01:28:46 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 604EBE08CD
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Mar 2019 01:28:46 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C38D7335D35
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Mar 2019 01:28:44 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A2A7452F
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Mar 2019 01:28:42 +0000 (UTC)
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" <whissi@gentoo.org>
Message-ID: <1553909275.83e20abc4088395ffe47faf428e324c33b42e894.whissi@gentoo>
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
X-VCS-Repository: proj/genkernel
X-VCS-Files: defaults/initrd.scripts
X-VCS-Directories: defaults/
X-VCS-Committer: whissi
X-VCS-Committer-Name: Thomas Deutschmann
X-VCS-Revision: 83e20abc4088395ffe47faf428e324c33b42e894
X-VCS-Branch: master
Date: Sat, 30 Mar 2019 01:28:42 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 6fe6b830-ad7d-4147-bb9e-fc92115da02d
X-Archives-Hash: 1885e9bcca7b2a1979405dc3ca1415d4

commit:     83e20abc4088395ffe47faf428e324c33b42e894
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 30 01:16:15 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Mar 30 01:27:55 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=83e20abc

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 <AT> gentoo.org>

 defaults/initrd.scripts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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() {