From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JCFzR-0005Cu-NG for mharc-grub-devel@gnu.org; Tue, 08 Jan 2008 10:03:41 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCFzQ-0005BT-EK for grub-devel@gnu.org; Tue, 08 Jan 2008 10:03:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCFzO-00058r-Be for grub-devel@gnu.org; Tue, 08 Jan 2008 10:03:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCFzN-00058P-Jv for grub-devel@gnu.org; Tue, 08 Jan 2008 10:03:37 -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 1JCFzN-0005Vs-3z for grub-devel@gnu.org; Tue, 08 Jan 2008 10:03:37 -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 1JCFzI-00024R-01 for grub-devel@gnu.org; Tue, 08 Jan 2008 16:03:36 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JCFxU-000090-IS for grub-devel@gnu.org; Tue, 08 Jan 2008 16:01:40 +0100 Date: Tue, 8 Jan 2008 16:01:40 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080108150140.GA470@thorin> References: <1199736618.7025.9.camel@localhost.localdomain> <20080107220751.GB23660@thorin> <1199745077.7025.38.camel@localhost.localdomain> <20080108092431.GB4044@thorin> <1199787703.7671.18.camel@localhost.localdomain> <20080108121314.GC4270@thorin> <1199797210.7601.3.camel@localhost.localdomain> <1199798453.7601.17.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline In-Reply-To: <1199798453.7601.17.camel@localhost.localdomain> 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: [PATCH] force load of lvm and raid before entering normal mode (Re: LVM on debian) 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: Tue, 08 Jan 2008 15:03:41 -0000 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 08, 2008 at 02:20:53PM +0100, Martin Braure de Calignon wrote: > > On mar, 2008-01-08 at 21:11 +0800, Bean wrote: > > I think the most likely command to cause the error is > > > > font (mainvg-usr)/share/grub/unicode.pff > > or > > terminal gfxterm > > I think 'font' line can't work because font are on my /usr, and /usr is > LVM and lvm module is not loaded... But I though grub2 know how to deals > with it. It's a bit funny. I tried to fix your problem, and at some point I realized I was fixing something else. Then got back at your problem, and turned out we just need to force load of "lvm" and "raid" before entering normal mode. Please try attached patch and report (note: this is unrelated to the parser error Bean fixed; the parser error simply makes the real problem in your setup go away unnoticed). -- 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 /.) --7AUc2qLy4jB3hD7Z Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="lvmraid.diff" diff -ur grub2/kern/main.c grub2.lvm/kern/main.c --- grub2/kern/main.c 2008-01-05 13:04:35.000000000 +0100 +++ grub2.lvm/kern/main.c 2008-01-08 15:57:54.000000000 +0100 @@ -99,6 +99,11 @@ static void grub_load_normal_mode (void) { + /* Before entering normal mode, always insert these whenever + they're available. */ + grub_dl_load ("lvm"); + grub_dl_load ("raid"); + /* Load the module. */ grub_dl_load ("normal"); --7AUc2qLy4jB3hD7Z--