From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JMu69-0001Qp-Kk for mharc-grub-devel@gnu.org; Wed, 06 Feb 2008 18:54:37 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMu67-0001Qg-R5 for grub-devel@gnu.org; Wed, 06 Feb 2008 18:54:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMu65-0001QS-VX for grub-devel@gnu.org; Wed, 06 Feb 2008 18:54:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMu65-0001QP-R9 for grub-devel@gnu.org; Wed, 06 Feb 2008 18:54:33 -0500 Received: from ns39764.ovh.net ([91.121.25.85] helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMu65-0004Xc-IM for grub-devel@gnu.org; Wed, 06 Feb 2008 18:54:33 -0500 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id 0C3203EB24 for ; Thu, 7 Feb 2008 01:01:33 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Thu, 7 Feb 2008 00:54:28 +0100 User-Agent: KMail/1.9.4 References: <1202161005.7223.38.camel@xerces> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802070054.29193.okuji@enbug.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: grub2 and Linux software RAID devices X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 23:54:36 -0000 On Thursday 07 February 2008 00:19, Sam Morris wrote: > On Wed, 06 Feb 2008 00:49:24 +0000, Sam Morris wrote: > > Then the screen blanks, and the next thing printed is: > > > > Welcome to GRUB! > > > > Entering into rescue mode... > > grub rescue> > > > > Whereupon I can enter 'insmod normal' and then 'normal' to get to the > > regular boot menu. > > I modified the grub_load_normal_mode function in kern/main.c to print out > the value of grub_errno after calling 'grub_dl_load ("normal")'. The > result was 11, which corresponds to GRUB_ERR_OUT_OF_RANGE. > > I think it would be a good idea to modify the code to print out a > description of the error at this point, or at least to display the error > number, so that users know why they are being booted into the rescue > shell. Clever idea. I think it is crucial to add this kind of code more and more to GRUB, because the user often doesn't want to patch and recompile and reinstall, again and again. Okuji