From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.windriver.com ([147.11.1.11]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TslcY-0001Vi-3U for openembedded-core@lists.openembedded.org; Wed, 09 Jan 2013 03:42:27 +0100 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.3) with ESMTP id r092RDAI029850 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 8 Jan 2013 18:27:13 -0800 (PST) Received: from [128.224.163.154] (128.224.163.154) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.2.318.4; Tue, 8 Jan 2013 18:27:13 -0800 Message-ID: <50ECD597.9090403@windriver.com> Date: Wed, 9 Jan 2013 10:27:35 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: References: <239f0850af3e3f0ed83263e4306420f4f0684088.1357615514.git.Qi.Chen@windriver.com> In-Reply-To: <239f0850af3e3f0ed83263e4306420f4f0684088.1357615514.git.Qi.Chen@windriver.com> X-Originating-IP: [128.224.163.154] Subject: Re: [PATCH 1/1] runqemu-internel: add 'debugshell' as a default kernel option X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 02:42:28 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sorry about the typo in subject. I'll fix the typo and send out this patch again. Chen Qi On 01/08/2013 05:06 PM, Qi.Chen@windriver.com wrote: > From: Chen Qi > > Add 'debugshell' as a default kernel option for ramfs booting. > > If rootfs.img cannot be found under /media, init-live.sh loops > forever without showing any information. Silently looping forever > and blocking users is inappropriate. > > Now that the 'debugshell' feature has been implemented in init-live.sh, > It's reasonable to add it to the kernel option when booting a ramfs-based > image. In this way, the system doesn't loop forever and instead drops > to a shell after a default timeout (30 seconds). > > Signed-off-by: Chen Qi > --- > scripts/runqemu-internal | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal > index a11220d..9d570ed 100755 > --- a/scripts/runqemu-internal > +++ b/scripts/runqemu-internal > @@ -472,7 +472,7 @@ fi > > if [ "x$RAMFS" = "xtrue" ]; then > QEMUOPTIONS="-initrd $ROOTFS -nographic" > - KERNCMDLINE="root=/dev/ram0" > + KERNCMDLINE="root=/dev/ram0 debugshell" > fi > > if [ "x$QEMUOPTIONS" = "x" ]; then