Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JCLeM-0003IB-0S for mharc-grub-devel@gnu.org; Tue, 08 Jan 2008 16:06:18 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCLeF-0003Ca-WB for grub-devel@gnu.org; Tue, 08 Jan 2008 16:06:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCLeD-00039V-BP for grub-devel@gnu.org; Tue, 08 Jan 2008 16:06:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCLeB-000391-Ul for grub-devel@gnu.org; Tue, 08 Jan 2008 16:06:08 -0500 Received: from smtp-vbr16.xs4all.nl ([194.109.24.36]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCLeB-00023q-Nc for grub-devel@gnu.org; Tue, 08 Jan 2008 16:06:07 -0500 Received: from peder.flower (peder.xs4all.nl [82.93.198.126]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id m08L60Fh076194; Tue, 8 Jan 2008 22:06:01 +0100 (CET) (envelope-from janneke-list@xs4all.nl) Received: from [127.0.0.1] (localhost [127.0.0.1]) by peder.flower (Postfix) with ESMTP id 8151BAC7BA; Tue, 8 Jan 2008 22:06:00 +0100 (CET) From: Jan Nieuwenhuizen To: Robert Millan In-Reply-To: <20080108152102.GA13078@thorin> References: <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> <20080108150140.GA470@thorin> <20080108152102.GA13078@thorin> Content-Type: text/plain Organization: lilypond-design.org Date: Tue, 08 Jan 2008 22:05:59 +0100 Message-Id: <1199826360.6104.19.camel@peder.flower> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Cc: The development of GRUB 2 Subject: Re: [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 21:06:14 -0000 Robert Millan writes: > Ok, so I fixed lvm/raid handling in core.img (by grub-install). This will help > those who (unlike you) have their /boot under LVM or software RAID. I applied both pathces, but lvm does not work for me yet. The second patch has +devtype_module=`$grub_probe --target=type --device-map=${device_map} ${grubdir}` but my grub-probe patched against latest CVS does grok --target=type, it says Try ``grub-probe --help'' for more information. -t, --target=(fs|drive|device|partmap) Should I be pulling some git branch of yours? When I replace the line above with +devtype_module=`$grub_probe --target=device --device-map=${device_map} ${grubdir}` grub-install issues grub-mkimage --output=/boot/grub/core.img --prefix=/boot/grub ext2 /dev/mapper/lvmraid-lvm1 biosdisk _chain grub-mkimage: error: cannot stat /dev/mapper/lvmraid-lvm1.mod (odd btw, how there is also no gpt in the list. that won't work, right?) This grub-mkimage line gave me an idea: you have lvm loaded before ext2, which could be why lvm inserted in core.img does not work. So I manually did grub-mkimage --output=/boot/grub/core.img --prefix=/boot/grub ext2 lvm pc gpt biosdisk _chain grub-setup '(hd0)' but that again gave me a grub rescue> prompt with exactly the same problems as before: error: unknown device, until I rmmod lvm, insmod lvm by hand (reboot) grub rescue> set prefix=(lvmraid-lvm0)/boot/grub root=lvmraid-lvm0 grub rescue> insmod normal error: unknown device grub rescue> lsmod Name Ref Count Dependencies biosdisk 1 gpt 1 pc 1 ext2 1 fshelp fshelp 2 lvm 1 grub rescue> ls (hd0) (hd0,1) (hd0,5) (hd0,6) (hd0) (hd1,1) (hd1,5) (hd1,6) grub rescue> rmmod lvm grub rescue> insmod (hd1,1)/boot/grub/lvm.mod grub rescue> ls (lvmraid-lvm0) ... grub rescue> insmod normal grub rescue> normal (See http://lists.gnu.org/archive/html/grub-devel/2008-01/msg00146.html) Greetings, Jan. -- Jan Nieuwenhuizen | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org