From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JEkul-0004N8-5w for mharc-grub-devel@gnu.org; Tue, 15 Jan 2008 07:29:11 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEkuj-0004LY-3G for grub-devel@gnu.org; Tue, 15 Jan 2008 07:29:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEkug-0004LM-N2 for grub-devel@gnu.org; Tue, 15 Jan 2008 07:29:07 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEkug-0004LJ-H3 for grub-devel@gnu.org; Tue, 15 Jan 2008 07:29:06 -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 1JEkug-0001i5-59 for grub-devel@gnu.org; Tue, 15 Jan 2008 07:29:06 -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 1JEkuX-0004sP-MO for grub-devel@gnu.org; Tue, 15 Jan 2008 13:29:00 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JEksn-0000Dp-J3 for grub-devel@gnu.org; Tue, 15 Jan 2008 13:27:09 +0100 Date: Tue, 15 Jan 2008 13:27:09 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080115122709.GH31275@thorin> References: <1199886620.6568.8.camel@localhost.localdomain> <20080109143446.GD2684@thorin> <1199890518.16753.8.camel@localhost.localdomain> <20080109153648.GA8510@thorin> <1199896057.16753.23.camel@localhost.localdomain> <20080109234940.GA5331@thorin> <20080110124317.GA5212@thorin> <87odbn2uzc.fsf@xs4all.nl> <20080115115658.GC31275@thorin> <877iib2sh0.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877iib2sh0.fsf@xs4all.nl> 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: Re: [PATCH] fix `lvm' and `raid' loading for grub-install/core.img and update-grub/grub.cfg problems 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, 15 Jan 2008 12:29:09 -0000 On Tue, Jan 15, 2008 at 01:17:31PM +0100, Marco Gerards wrote: > Robert Millan writes: > > > On Tue, Jan 15, 2008 at 12:23:19PM +0100, Marco Gerards wrote: > >> Robert Millan writes: > >> > >> > New patch, a bit simpler (after giving it a though, I don't think the gained > >> > speed is worth the extra complication) > >> > >> What does this patch fix? Too many problems in one thread... > > > > It fixes loading of lvm/raid modules in two situations: > > > > - In core.img, by grub-install, when they're needed to access /boot. > > This is still not enough to get it working due to another bug > > (detection of partmap). > > > > - In grub.cfg, by update-grub, when they're needed to access /usr > > for the font file. > > Oh, great. Why can't this font be put in /boot/grub? Using /usr can > mean we need: raid, lvm, fshelp, a fs and a partitioning scheme module > in addition to what we need to access /boot. /boot/grub might be a mount point for a small storage device, and so big stuff like fonts might not fit (I got reports of this happening in Debian BTS). > >> BTW, does it also work for the case both LVM and RAID are used? > > > > No, for that we need to handle recursion in grub-probe, which is the same > > we'll need to get partmap detection working on lvm/raid. > > You are working on this? No, although I thought a bit about it and how to solve it. > Or is this bug documented? Maybe we have something buried deep in Debian BTS. It might take more time to find it than to fix the bug, though ;-) The problem is like: When LVM is based on physical partitions that belong to a pc or gpt table, "grub-probe -t partmap /some/lvmed/mntpoint" won't work. -- 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 /.)