From owner-freebsd-fs@FreeBSD.ORG Fri Aug 10 08:31:58 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3116D106566C; Fri, 10 Aug 2012 08:31:58 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mail.kirov.so-ups.ru (mail.kirov.so-ups.ru [178.74.170.1]) by mx1.freebsd.org (Postfix) with ESMTP id C60108FC15; Fri, 10 Aug 2012 08:31:57 +0000 (UTC) Received: from kas30pipe.localhost (localhost.kirov.so-ups.ru [127.0.0.1]) by mail.kirov.so-ups.ru (Postfix) with SMTP id EF8E2B8027; Fri, 10 Aug 2012 12:31:45 +0400 (MSK) Received: from kirov.so-ups.ru (unknown [172.21.81.1]) by mail.kirov.so-ups.ru (Postfix) with ESMTP id E9C18B8024; Fri, 10 Aug 2012 12:31:45 +0400 (MSK) Received: by ns.kirov.so-ups.ru (Postfix, from userid 1010) id E412BBA09E; Fri, 10 Aug 2012 12:31:45 +0400 (MSK) Received: from [127.0.0.1] (elsukov.kirov.oduur.so [10.118.3.52]) by ns.kirov.so-ups.ru (Postfix) with ESMTP id AEA8BBA09A; Fri, 10 Aug 2012 12:31:45 +0400 (MSK) Message-ID: <5024C6EB.1040109@FreeBSD.org> Date: Fri, 10 Aug 2012 12:31:39 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Lawrence Stewart References: <50237B73.9040301@freebsd.org> <5023979B.4010903@yandex.ru> <5023A907.7060800@freebsd.org> <50246E2C.1070604@freebsd.org> In-Reply-To: <50246E2C.1070604@freebsd.org> X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6C303CBB45C369C8A550008C" X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release X-SpamTest-Info: Not protected Cc: "freebsd-fs@freebsd.org" , Marcel Moolenaar Subject: Re: gpart rewrites pmbr in a way which breaks Win 7 EFI bootloader X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2012 08:31:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6C303CBB45C369C8A550008C Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 10.08.2012 6:13, Lawrence Stewart wrote: >> What about the following: We have the kernel keep track of the firmwar= e >> used. On x86 this is either BIOS or UEFI in the common case. Other F/W= >> implementations like U-Boot, OFW, etc are possible as well, especially= >> on non-x86 machines. >> >> The geom_part scheme uses this information to determine how to behave >> with respect to the PMBR. When booted with BIOS, non-standard stuff is= >> accepted by virtue of what we've seen in the field. With UEFI we can >> start off being anal (read: strictly compliant) and extend out based >> on what we run into. >> >> In particular: this way we also don't mess up the EFI/GPT support that= >> is there on ia64. >> >> Thoughts? It seems this is not enough. The problem, that Lawrence has, is not related to BIOS/UEFI. Automatic detection of various standard violation i= s handy for our users, but sometimes false positives occur. To solve all problems it seems we need to introduce several quirks, e.g.:= #define GPT_QUIRK_BOOTCAMP 0x0001 /* boot camp supported */ #define GPT_QUIRK_MSLOADER 0x0002 /* don't set Active flag to the P= MBR entry */ #define GPT_QUIRK_IGNOREPMBR 0x0004 /* don't require PMBR entry */ The same quirks should be added to the loader(8). --=20 WBR, Andrey V. Elsukov --------------enig6C303CBB45C369C8A550008C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJQJMbxAAoJEAHF6gQQyKF69JMIAJtcBy9l2eLRvPhJ1YMW/SBP 7hWXYHodzAyrBUCvRzTgA3x7wbHfsCsR0qDi7CKUyfPN/4WQlP8l0SzLgssV357r z3Ly3/7wiOaCLV0Kw70/J7h0zay2IO8ab/WioVfckm/13K7/hoUxw6FSNbMfkUFT 68acW67W4XzEPInh9PndtnAjv4cGg9k1ShrUaLa22XJC2OjGMDGY2p33AXY+zoWM vdq7VxE2dNciCt/uGdA+eQw9PvZLrvh4j8i/PJCa9VZxNaLimoSLQxeCSMw7Gr5h vutnkSH1axhFiFWVBUkk1Rn8MEoYuz72P/8seqypGCEscDDTqzg/otF0y5wTq58= =1aut -----END PGP SIGNATURE----- --------------enig6C303CBB45C369C8A550008C--