From nobody Wed May 19 17:09:06 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 E44698C1AF3 for ; Wed, 19 May 2021 17:09:17 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FlfVP68yZz3rkf for ; Wed, 19 May 2021 17:09:17 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from pi by home.opsec.eu with local (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1ljPgw-000Hq1-Sp; Wed, 19 May 2021 19:09:06 +0200 Date: Wed, 19 May 2021 19:09:06 +0200 From: Kurt Jaeger To: Michael Gmelin Cc: current@freebsd.org Subject: Re: zpool upgrade and bootcode on 13-RELEASE Message-ID: References: <20210519153757.4e00e96f@bsd64.grem.de> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210519153757.4e00e96f@bsd64.grem.de> X-Rspamd-Queue-Id: 4FlfVP68yZz3rkf X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Hi! > Does this mean, re-installing the bootcode isn't necessary anymore - or > has the warning been removed by accident/as a side effect of merging > with OpenZFS? On the contrary, because of the switch from FreeBSD ZFS to OpenZFS, the bootcodes needs to be updated! It's unfortunate that no message is displayed 8-( The problem is, finding out which bootcode needs to go where etc. It depends if your system boots from the EFI partition or from the freebsd-boot partition. And how your system is partitioned. I have some notes for gpart filesystems: - check with gpart show This system has both (!): partition 1 is efi partition 2 is legacy boot => 40 4000797280 ada0 GPT (1.9T) 40 409600 1 efi (200M) 409640 1024 2 freebsd-boot (512K) 410664 984 - free - (492K) 411648 18874368 3 freebsd-swap (9.0G) 19286016 3981510656 4 freebsd-zfs (1.9T) 4000796672 648 - free - (324K) - To update the EFI: mount -t msdos /dev/ada0p1 /mnt cd /mnt/efi/boot mv BOOTx64.efi BOOTx64.efi-old cp /boot/loader.efi BOOTx64.efi cd / umount /mnt - To update the legacy boot: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 - If efi is not mountable ? create a msdosfs: newfs_msdos /dev/ada0p1 mount -t msdos /dev/ada0p1 /mnt mkdir /mnt/efi/boot cp /boot/loader.efi /mnt/efi/boot/BOOTx64.efi umount /mnt -- pi@opsec.eu +49 171 3101372 Now what ?