Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KOsC5-0002l6-C4 for mharc-grub-devel@gnu.org; Fri, 01 Aug 2008 06:49:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOsC2-0002hh-Qz for grub-devel@gnu.org; Fri, 01 Aug 2008 06:49:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOsC1-0002gO-0s for grub-devel@gnu.org; Fri, 01 Aug 2008 06:49:06 -0400 Received: from [199.232.76.173] (port=49380 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOsBz-0002gB-P4 for grub-devel@gnu.org; Fri, 01 Aug 2008 06:49:04 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:50731) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOsBz-000756-70 for grub-devel@gnu.org; Fri, 01 Aug 2008 06:49:03 -0400 Received: from [85.180.15.149] (e180015149.adsl.alicedsl.de [85.180.15.149]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis) id 0ML29c-1KOsBn2gRb-0000vU; Fri, 01 Aug 2008 12:48:51 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <877ib1hvce.fsf@xs4all.nl> References: <1217459965.26275.14.camel@fz-deb.local> <877ib1hvce.fsf@xs4all.nl> Content-Type: text/plain Date: Fri, 01 Aug 2008 12:48:55 +0200 Message-Id: <1217587735.3495.10.camel@fz-deb.local> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+tWWn2vUffUXaaMYerLDh3Tlu0Sl9EMCM5hpd diHqQ9oH/XaPkRZ7zIh3PPvJuJXomsOobpeDgYPxbADUmIEg7X WihJ8rUdIXvuwvV9sJzN7rAn7PS0jKT X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) Subject: Re: [PATCH] skip over invalid BSD partitions 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: Fri, 01 Aug 2008 10:49:07 -0000 Am Freitag, den 01.08.2008, 12:40 +0200 schrieb Marco Gerards: > When does this occur? > That's the Debian bugreport for it: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478238 It's very easy to reproduce. I never used any *BSD flavour just Linux so I even didn't know about these BSD subpartitions or whatever these are. I made a new partition table with Linux fdisk Set the first partition to type 0x6a for OpenBSD then the second one to type 0x83 for Linux formated 2. with ext2 tested it with grub-probe and grub-emu It failed to detect it because the for() stops reading further partitions if the BSD one is invalid. > > If you continue as no error occured, why do you throw an error? > I thought it would be a good idea to give the user a warning that something is wrong with that partition which has a BSD type. At least the return is wrong see above.