From owner-freebsd-current@FreeBSD.ORG Thu Jun 14 13:50:16 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 68145106566B for ; Thu, 14 Jun 2012 13:50:16 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id B2CBB153FED; Thu, 14 Jun 2012 13:50:14 +0000 (UTC) Message-ID: <4FD9EC14.8070203@FreeBSD.org> Date: Thu, 14 Jun 2012 17:50:12 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120406 Thunderbird/10.0.3 MIME-Version: 1.0 To: Olivier Smedts References: <4FCF3021.5070802@FreeBSD.org> <20120606.200735.1551208261335301113.hrs@allbsd.org> <4FD05573.70801@FreeBSD.org> <20120610.224813.710171778841273502.hrs@allbsd.org> <4FD9D4DF.9090609@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4 OpenPGP: id=10C8A17A Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig02D67ED291418359EC897546" Cc: current@freebsd.org Subject: Re: CFR: backup GPT header support in pmbr and loader(8) (Re: Handbook mirroring section) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 13:50:16 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig02D67ED291418359EC897546 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 14.06.2012 17:08, Olivier Smedts wrote: > 2012/6/14 Andrey V. Elsukov : >> Also, our PMBR image doesn't contain any partition entries and >> writing it to the disk with dd(1) makes the system unbootable. >> What you think if we will add one partition entry to the PMBR image? >> I modified your patch (the last hunk added) and it is attached. >=20 > Isn't it gpart(8)'s job to write the proper boot code from the pmbr > image without damaging the partition table ? >=20 > ie. "gpart bootcode -b /boot/pmbr ada0" instead of using dd. gpart(8) works only when GPT's geom exists, when PMBR is damaged GEOM_PART_GPT can't detect GPT and thus you can't use it. --=20 WBR, Andrey V. Elsukov --------------enig02D67ED291418359EC897546 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJP2ewUAAoJEAHF6gQQyKF6NNkIAKbmq2s6CYt3hp7+VCVpvvv4 vkBFxm6lKyipT/mP+t9ic1mCZX6GB2nT+Ur94vQhFi5GQu/tQRCMnfMifs+UMnJ2 PkRX0445A3Q0/85EIuN0pp0wLxukXRhRtCbTy2VKXtA2UOOzSIhRZH7+0mETRe+O x9BO3SU+GPW6nSkHcMXX/sCAUy2UmAWBjsNP+nfWuIrNBRq0jkSYcCrim4zdge8Z RCGXIPveKVYggkIz/0Ku2AUnv/yk3fRuDIiq8B7ELcL2Ffdx1wiFTT9EE/+8W1ZE ff/SI5z4I+nXtJIOr/enRyihMaG17RH5qNGyPgHuiV9PS+jlHGziunF5JL9qP5E= =uo6i -----END PGP SIGNATURE----- --------------enig02D67ED291418359EC897546--