From owner-freebsd-stable@freebsd.org Fri Feb 19 20:41:25 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CB87E53B0C8 for ; Fri, 19 Feb 2021 20:41:25 +0000 (UTC) (envelope-from david.marec@lapinbilly.eu) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dj3QD4RlWz3FpR; Fri, 19 Feb 2021 20:41:24 +0000 (UTC) (envelope-from david.marec@lapinbilly.eu) X-Originating-IP: 90.76.43.122 Received: from llanura.davidmarec.ddns.net (lfbn-tou-1-1219-122.w90-76.abo.wanadoo.fr [90.76.43.122]) (Authenticated sender: david@lapinbilly.eu) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id CEEE9C0003; Fri, 19 Feb 2021 20:41:21 +0000 (UTC) Subject: Re: FreeBSD 13/stable and zpool upgrade To: Kurt Jaeger , Warner Losh Cc: freebsd-stable References: From: David Marec Message-ID: <7c9810fe-6960-0ec7-cab3-2f0c344471f4@lapinbilly.eu> Date: Fri, 19 Feb 2021 21:41:21 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4Dj3QD4RlWz3FpR X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david.marec@lapinbilly.eu designates 217.70.183.198 as permitted sender) smtp.mailfrom=david.marec@lapinbilly.eu X-Spamd-Result: default: False [-3.40 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RWL_MAILSPIKE_GOOD(0.00)[217.70.183.198:from]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:217.70.183.192/28]; RBL_DBL_DONT_QUERY_IPS(0.00)[217.70.183.198:from]; DMARC_NA(0.00)[lapinbilly.eu]; SPAMHAUS_ZRD(0.00)[217.70.183.198:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-stable]; RCVD_IN_DNSWL_LOW(-0.10)[217.70.183.198:from] X-Mailman-Approved-At: Fri, 19 Feb 2021 22:04:32 +0000 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2021 20:41:25 -0000 Hi, On 19/02/2021 19:24, Kurt Jaeger wrote: > I suspect that your 'zpool upgrade' enabled things that weren't enabled > before. This caused the old boot blocks to no longer work. Correct. That' s definitely the source of the booting issue. > We should be better about upgrading boot blocks, but EFI is kinda new and > kinda different EFI is able to boot any FreeBSD box for a while. The main issue is that the legacy way to upgrade these /bootcode and partcode/ not only does not work, but do bad things. # gpart bootcode -p /boot/gptzfsboot -i 1  ada0s1 will install an old and inappropriate /partcode/. IMO, 'gptzfsboot' should be sweep off  along with 'boot1.efifat' ( by calling 'make delete-old') or be built with the right 'BOOTx64.EFI', which actually is`/boot/loader.efi` . -- David Marec http://wiki.fug-fr.org/doku.php?id=start https://diaspora.lapinbilly.eu/