From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S8iQe-0004rG-CY for garchives@archives.gentoo.org; Sat, 17 Mar 2012 01:27:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3142AE0BE9; Sat, 17 Mar 2012 01:27:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 01D25E0BE9 for ; Sat, 17 Mar 2012 01:27:22 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3AF091B400E for ; Sat, 17 Mar 2012 01:27:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5087EE542C for ; Sat, 17 Mar 2012 01:27:20 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1331932384.0584c96ca68fd2afe19cec19c35f929e068d5609.sping@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: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 0584c96ca68fd2afe19cec19c35f929e068d5609 X-VCS-Branch: master Date: Sat, 17 Mar 2012 01:27:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 09265237-56c2-4ed9-a001-0ab160789641 X-Archives-Hash: 3513a4227f9c2fd1308022f6918cd87f commit: 0584c96ca68fd2afe19cec19c35f929e068d5609 Author: Sebastian Pipping pipping org> AuthorDate: Fri Mar 16 21:13:04 2012 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Fri Mar 16 21:13:04 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/genkernel.git= ;a=3Dcommit;h=3D0584c96c Extract function do_rundebugshell --- defaults/initrd.scripts | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 0e1e5f9..8ce8ac6 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -1000,12 +1000,16 @@ setup_md_device() { fi } =20 +do_rundebugshell() { + good_msg 'Type "exit" to continue with normal bootup.' + [ -x /bin/sh ] && /bin/sh || /bin/ash +} + rundebugshell() { if [ -n "$DEBUG" ] then good_msg 'Starting debug shell as requested by "debug" option.' - good_msg 'Type "exit" to continue with normal bootup.' - [ -x /bin/sh ] && /bin/sh || /bin/ash + do_rundebugshell fi } =20