From nobody Thu May 20 08:14:00 2021 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D67F48BF1A6 for ; Thu, 20 May 2021 08:14:04 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fm2ZN2vttz3r2q for ; Thu, 20 May 2021 08:14:03 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from AprilRyan.norad ([46.223.162.252]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MMoXE-1m0DGP1Vv2-00IlHj; Thu, 20 May 2021 10:14:01 +0200 To: Michael Gmelin , current@freebsd.org References: <20210519153757.4e00e96f@bsd64.grem.de> From: Dominic Fandrey Subject: Re: zpool upgrade and bootcode on 13-RELEASE Message-ID: <5be6d214-7175-2a85-fc28-6e47de419b53@bsdforen.de> Date: Thu, 20 May 2021 10:14:00 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 In-Reply-To: <20210519153757.4e00e96f@bsd64.grem.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:oDYvxv/WZou6Yi9wKuc0J+ofEl5TgsrvG/1k78Xr60+Uy6h4Gtr LVXeMS7Fyk9sX5hU7PzrlcM+ZEkmMlpfX7MY9ct3HmYutv9LBWiq/F1BTt3erWg2/+BgAuD mnwSgVRHnPO+IZ4fRQX2opxk+vXJAJYTvsEt9jOPXNj/fs0ObtKjWUPohLJB7qYbTYTTfTE Cw4tarKkMZj8HpWZvztpQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:P4KQkb3Z4lg=:z+fMVno3CHFhrNVce6Ukeu mNcHXoEH1Ahsde6NnxeMttQ1wLa/4wPAF77zDJNHqox5a1WnYjTzwfHLKwAxyMTWYduZ+HSdV WKrRDVn1mpGqSTbhwIcIrr6UHnZZ/NoNPUzD9RjCgApfVB2Y2BmqUjOvm+u8kr/tzwiBOrZ3V QBvnnMMBpj8l4hd49b95GMzJDesMXSOKQ6Fzv6Oj4dlyP3YKSuZkMGlnm1nP+vLTS2N+ERRL5 USiQXU+2uhP2aVUK2heFDrCqQSABQZWIkzE7Q5gG5A8LU2CXVMw2F+OCSecAspoqmoL3avrjc wm9dmbh4t81FOwfhN9zhy1y4BBiE6U08ZNqF7vKGALP/bB6QweIuls/h4fc3x+uqTvD8PFn+j qmGwJbJlbgR4eIZIMK00TRev+8RXeHdOONIKwPZKjMbz/O78J0F2moxEE73WC08JthIyNJTyN kzXJjDKXJLWl4CYoAbzA8z4G1REfqFq67e33flziVf4pAxNcwhfbTCCgOG/K2hb5Ub8cCuXce X5ApJHZf4C9O20W5fCc9Vo= X-Rspamd-Queue-Id: 4Fm2ZN2vttz3r2q X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] On 19/05/2021 15:37, Michael Gmelin wrote: > Quick question: > > When upgrading a zpool, there used to be a message like this: > > If you boot from pool 'zroot', don't forget to update boot code. > Assuming you use GPT partitioning and da0 is your boot disk > the following command will do it: > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 ports-mgmt/bsdadminscripts2 comes with a loader updater for GPT partitioned drives, it has a --dry-run mode to show you what it does: root# loaderupdate -D nvd0 gpart bootcode -b/boot/pmbr nvd0 gpart bootcode -p/boot/gptzfsboot -i1 nvd0 mkdir -p nvd0p2 mount -tmsdosfs -osync /dev/nvd0p2 nvd0p2 mkdir -p nvd0p2/efi/FreeBSD cp /boot/loader.efi nvd0p2/efi/FreeBSD/bootamd64.efi efibootmgr -Bb 0001 efibootmgr -cl nvd0p2:/efi/FreeBSD/bootamd64.efi -L 'FreeBSD 13.0-STABLE #11 stable/13-n245147-ee389afecf85: Fri Apr 9 10:16:57 CEST 2021 amd64 [nvd0p2]' efibootmgr -ab 0001