Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MSTDm-0005RL-Oi for mharc-grub-devel@gnu.org; Sun, 19 Jul 2009 06:02:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSTDk-0005R1-FD for grub-devel@gnu.org; Sun, 19 Jul 2009 06:02:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSTDf-0005Nd-UB for grub-devel@gnu.org; Sun, 19 Jul 2009 06:02:15 -0400 Received: from [199.232.76.173] (port=50813 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSTDf-0005NQ-KK for grub-devel@gnu.org; Sun, 19 Jul 2009 06:02:11 -0400 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:58813) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSTDe-0001eP-9K for grub-devel@gnu.org; Sun, 19 Jul 2009 06:02:10 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1MSTDc-0005Be-LP for grub-devel@gnu.org; Sun, 19 Jul 2009 10:02:08 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1MSTDZ-0003HL-00; Sun, 19 Jul 2009 11:02:05 +0100 Date: Sun, 19 Jul 2009 11:02:05 +0100 From: Colin Watson To: The development of GRUB 2 Message-ID: <20090719100205.GQ11691@riva.ucam.org> References: <20090718184255.GG8867@thorin> <20090718192211.GN8867@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090718192211.GN8867@thorin> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] Fix when installing on pationless but partionable medium 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: Sun, 19 Jul 2009 10:02:16 -0000 On Sat, Jul 18, 2009 at 09:22:11PM +0200, Robert Millan wrote: > On Sat, Jul 18, 2009 at 09:00:36PM +0200, Vladimir 'phcoder' Serbinenko wrote: > > On Sat, Jul 18, 2009 at 8:42 PM, Robert Millan wrote: > > > I'm not sure there's much we can do about this.  Using heuristics sounds like > > > it will make the solution worse than the problem.  I don't care much about > > > Microsoft filesystems, but I'd hate to see GRUB fail on a completely sane > > > ext3 inside msdos label because it happened to look like FAT in raw disk at > > > the same time. > > > > The approach proposed by Collin avoids such problems since correct > > pc_partition_map is always detected as such. > > I haven't looked at the source code, but what he said is we can determine if > an MBR is valid by checking the bootable flag, and this is not always so. If the bootable flag is neither 0 nor 0x80, then neither libparted nor the Linux kernel will understand it as a DOS partition table. Is it really all that helpful for GRUB to attempt to do so? I've never heard of false positives with the libparted/Linux checks. Do you have real-world examples of them failing? -- Colin Watson [cjwatson@ubuntu.com]