From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JH3ue-0003Ic-0C for mharc-grub-devel@gnu.org; Mon, 21 Jan 2008 16:10:36 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JH3ud-0003IH-1n for grub-devel@gnu.org; Mon, 21 Jan 2008 16:10:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JH3ub-0003HN-Dy for grub-devel@gnu.org; Mon, 21 Jan 2008 16:10:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JH3ub-0003HG-A4 for grub-devel@gnu.org; Mon, 21 Jan 2008 16:10:33 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JH3ua-0006EC-S1 for grub-devel@gnu.org; Mon, 21 Jan 2008 16:10:33 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JH3uZ-0001CQ-BF for grub-devel@gnu.org; Mon, 21 Jan 2008 22:10:31 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JH3t9-00043c-KN for grub-devel@gnu.org; Mon, 21 Jan 2008 22:09:03 +0100 Date: Mon, 21 Jan 2008 22:09:03 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080121210903.GD15119@thorin> References: <20080121165209.GA2557@thorin> <1200937626.4686.17.camel@dv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1200937626.4686.17.camel@dv> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: grub_cpio_find_file() finds unexisting files (Re: [PATCH] memdisk + grub-mkrescue) 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: Mon, 21 Jan 2008 21:10:35 -0000 On Mon, Jan 21, 2008 at 12:47:06PM -0500, Pavel Roskin wrote: > > I've tested the patch, and it seems to be OK, although I was surprised > to see an empty menu on startup. Perhaps a command line would be more > appropriate in absence of grub.cfg? I wanted to send a new mail about this, and then forgot. This is because of a bug in cpio.mod. The menu code thinks grub.cfg is present due to grub_cpio_find_file() returning here: if (!hd.name[0]) { *ofs = 0; return GRUB_ERR_NONE; } but I'm too clueless about tar format to figure this out. -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)