From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KWYSo-0004CI-6D for mharc-grub-devel@gnu.org; Fri, 22 Aug 2008 11:22:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWYSl-00048c-IB for grub-devel@gnu.org; Fri, 22 Aug 2008 11:22:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWYSi-00043a-OI for grub-devel@gnu.org; Fri, 22 Aug 2008 11:22:06 -0400 Received: from [199.232.76.173] (port=48313 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWYSi-00043Q-H5 for grub-devel@gnu.org; Fri, 22 Aug 2008 11:22:04 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:58259 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWYSi-0002JE-6m for grub-devel@gnu.org; Fri, 22 Aug 2008 11:22:04 -0400 Received: from pinux (86.81.221.87.dynamic.jazztel.es [87.221.81.86]) by mail.pina.cat (Postfix) with ESMTP id D489E288FBA13 for ; Fri, 22 Aug 2008 17:22:02 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id 427D618351; Fri, 22 Aug 2008 17:22:01 +0200 (CEST) Date: Fri, 22 Aug 2008 17:22:01 +0200 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20080822152201.GA6647@pina.cat> References: <20080821195144.GA17536@pina.cat> <20080822125635.GB20330@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080822125635.GB20330@thorin> User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [Wishlist] Better warning if grub.cfg not found 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: Fri, 22 Aug 2008 15:22:07 -0000 Hello, On Aug/22/2008, Robert Millan wrote: > On Thu, Aug 21, 2008 at 09:51:44PM +0200, Carles Pina i Estany wrote: > > > > Hello, > > > > Doing some tests with Grub2 and qemu I've made a mistake that Grub (I > > think) could warn me better. > > > > The mistake is that I didn't have a grub.cfg file (well, I had but in > > the wrong place). > > > > The Grub2 feedback for a standard user it's just flickering (I think > > that Grub2 paints the menu) and after that shows the command line. > > > > I would expect a warning, before the command line or in the command line > > screen informing user that grub.cfg has not been found in the expected > > place. > > Agreed. Can you fix this? Also, it shouldn't bother to draw the menu > if it isn't going to use it for anything. I will take a look. I'm not familiar with this Grub code part and on next week I will be some days away. But it's not an urgent issue. > > I'm doing the Grub2 imagine file using grub-mkrescue. > > > > Should already grub-mkrescue warn if grub.cfg is not there? (at least if > > using overlay option). I could take a look if grub-mkrescue should do > > it. > > AFAICT, this problem is in GRUB itself, and shouldn't affect what > grub-mkrescue does. I think that it's a Grub issue and not grub-mkrescue issue. One this is done (fixing Grub) we could fix the utilities. If grub-mkrescue knows that Grub will not have a grub.cfg, it's nice to warn the user (could save time). Of course, then, what happends if grub.cfg exists but it's not valid? Should grub-mkrescue parse it? Anyway, I will take a look to fix Grub before other things. -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info