Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KV1s4-0002X5-Sd for mharc-grub-devel@gnu.org; Mon, 18 Aug 2008 06:21:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KV1s0-0002WM-Qn for grub-devel@gnu.org; Mon, 18 Aug 2008 06:21:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KV1rw-0002VU-No for grub-devel@gnu.org; Mon, 18 Aug 2008 06:21:51 -0400 Received: from [199.232.76.173] (port=50398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KV1rv-0002VA-TQ for grub-devel@gnu.org; Mon, 18 Aug 2008 06:21:48 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:14160 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KV1rv-00070u-2u for grub-devel@gnu.org; Mon, 18 Aug 2008 06:21:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqkHAG/qqEhMCrld/2dsb2JhbACLHoVoonuBWIEV X-IronPort-AV: E=Sophos;i="4.32,228,1217822400"; d="scan'208";a="25605267" Received: from 76-10-185-93.dsl.teksavvy.com (HELO localhost) ([76.10.185.93]) by ironport2-out.teksavvy.com with ESMTP; 18 Aug 2008 06:21:44 -0400 Date: Mon, 18 Aug 2008 03:28:08 -0700 From: ian_bruce@fastmail.fm To: grub-devel@gnu.org Message-Id: <20080818032808.fab28c69.ian_bruce@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: don't scan floppy disks for LVM or RAID 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, 18 Aug 2008 10:21:54 -0000 Bean wrote: > Just like raid, lvm needs to scan all device. I think this is caused > when it try to open (fd0), and fails. The grub_errno is not cleared, > it's carried out and cause the rescue shell. I think we can improve > the test of (fd0) so that it won't appear in machine that don' t have > floppy, or reset grub_errno in lvm scan code when error occurs. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495049 --- grub2/disk/lvm.c.orig 2008-08-16 03:00:30.000000000 -0700 +++ grub2/disk/lvm.c 2008-08-16 06:07:43.000000000 -0700 @@ -221,10 +221,15 @@ struct grub_lvm_vg *vg; struct grub_lvm_pv *pv; + if (name[0]=='f' && name[1]=='d') + return 0; + disk = grub_disk_open (name); if (!disk) return 0; + grub_dprintf ("lvm", "Scanning (%s) for LVM devices\n", name); + /* Search for label. */ for (i = 0; i < GRUB_LVM_LABEL_SCAN_SECTORS; i++) { --- grub2/disk/raid.c.orig 2008-08-16 03:00:30.000000000 -0700 +++ grub2/disk/raid.c 2008-08-16 06:07:46.000000000 -0700 @@ -358,12 +358,15 @@ struct grub_raid_super_09 sb; struct grub_raid_array *p, *array = NULL; - grub_dprintf ("raid", "Scanning for RAID devices\n"); + if (name[0]=='f' && name[1]=='d') + return 0; disk = grub_disk_open (name); if (!disk) return 0; + grub_dprintf ("raid", "Scanning (%s) for RAID devices\n", name); + /* The sector where the RAID superblock is stored, if available. */ size = grub_disk_get_size (disk); sector = GRUB_RAID_NEW_SIZE_SECTORS(size);