Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Gd1F7-0006Vk-6m for mharc-grub-devel@gnu.org; Thu, 26 Oct 2006 05:09:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gd1F1-0006Tz-EP for grub-devel@gnu.org; Thu, 26 Oct 2006 05:09:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gd1Ex-0006Sb-6H for grub-devel@gnu.org; Thu, 26 Oct 2006 05:09:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gd1Ev-0006S9-Oy for grub-devel@gnu.org; Thu, 26 Oct 2006 05:09:30 -0400 Received: from [194.109.24.22] (helo=smtp-vbr2.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gd1Eu-0007k1-Ji for grub-devel@gnu.org; Thu, 26 Oct 2006 05:09:29 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id k9Q99R1U004776 for ; Thu, 26 Oct 2006 11:09:27 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20061025231130.GN6928@fencepost> Mail-Copies-To: mgerards@xs4all.nl Date: Thu, 26 Oct 2006 11:18:33 +0200 In-Reply-To: <20061025231130.GN6928@fencepost> (Thomas Schwinge's message of "Thu, 26 Oct 2006 01:11:30 +0200") Message-ID: <87hcxrwi3a.fsf@xs4all.nl> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Why the lvm module didn't work for me... 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: Thu, 26 Oct 2006 09:09:37 -0000 Thomas Schwinge writes: > Hello! > > On the first encounter this is just too funny: Jeroen's lvm module didn't > work for me... Because I didn't have a floppy in my floppy drive. Ha! > :-) > > > Trace: > > `insmod (hd0,1)/grub2/lvm.mod'. > > disk/lvm.c > GRUB_MOD_INIT(lvm) > { > grub_device_iterate (&grub_lvm_scan_device); > grub_disk_dev_register (&grub_lvm_dev); > } > > First relevant action of grub_device_iterate: call grub_lvm_scan_device > with ``fd0''. The floppy driver clatters, but there's no disk in, so the > grub_disk_read in grub_lvm_scan_device will fail, fall through to `fail' > and return. Can you add `grub_errno = GRUB_ERR_NONE;' to grub_lvm_scan_device? Perhaps this fixes the problem when properly used. Most likely this has to be done after a grub_device_open. -- Marco