From owner-freebsd-stable@freebsd.org Sat Dec 17 14:38:23 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F5E0C84200 for ; Sat, 17 Dec 2016 14:38:23 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03403A6D; Sat, 17 Dec 2016 14:38:22 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::e9b4:ef6:9a02:eea4] (unknown [IPv6:2001:7b8:3a7:0:e9b4:ef6:9a02:eea4]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2BD9914F75; Sat, 17 Dec 2016 15:38:20 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_164DED19-87CB-4F04-B762-CB39EE5D9962"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Upgrading boot from GPT(BIOS) to GPT(UEFI) From: Dimitry Andric In-Reply-To: Date: Sat, 17 Dec 2016 15:38:19 +0100 Cc: Antony Uspensky , =?utf-8?Q?Fernando_Herrero_Carr=C3=B3n?= , Eric van Gyzen , freebsd-stable , Slawa Olhovchenkov Message-Id: <2720DE76-B524-4AEA-ACC0-1EBD8813547D@FreeBSD.org> References: <20161216173930.GD90401@zxy.spb.ru> <85F3F813-D821-439B-B700-DCE51C53E035@FreeBSD.org> To: Warner Losh X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Dec 2016 14:38:23 -0000 --Apple-Mail=_164DED19-87CB-4F04-B762-CB39EE5D9962 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 16 Dec 2016, at 23:56, Warner Losh wrote: > > On Fri, Dec 16, 2016 at 11:00 AM, Dimitry Andric wrote: ... >> Yes, this is almost exactly what I have done on a machine that was >> originally installed with gptzfsboot on the first partition, which was >> 512K. Since all the partitions on this SSD were aligned to 1M, I >> reduced the size of the first partition to 224K, freeing up a hole of >> exactly 800K for an EFI partition: ... > You likely want to carve out more like 50MB instead of 800k for UEFI > partition. 800k is the minimum, but it also precludes many things you > may need to do with UEFI applications down the line. Well, this is the default boot1.efifat size. If you think 50MB is more reasonable, the boot1.efifat size should have a corresponding size. That said, as long as there are almost no such UEFI applications, I'm not bothering. Besides, even if there were, I don't have any interest in the UEFI "ecosphere" as-is. I see it as an ugly-but-necessary pre-bootloader environment only. -Dimitry --Apple-Mail=_164DED19-87CB-4F04-B762-CB39EE5D9962 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlhVTdsACgkQsF6jCi4glqNs9QCgqI+NxNslzQNvBHcnI/2G1MQr FgQAnj/JY0cw4nIjdwT837FhQyusaFG6 =7gHA -----END PGP SIGNATURE----- --Apple-Mail=_164DED19-87CB-4F04-B762-CB39EE5D9962--