From nobody Thu May 20 09:30:44 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 D3C32623889 for ; Thu, 20 May 2021 09:31:01 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fm4H93mqJz4vP3 for ; Thu, 20 May 2021 09:31:01 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 6ff99df6; Thu, 20 May 2021 09:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=20180501; bh=PXauP3Rn 9C1sFUfZSR+2ehQnZDY=; b=fEp8cR6nZ2OwQH5ovbHh9AInqvro+4a5CbcVvHWK 8qBY/BihSDRgMVAD75TuLM/MhH32aSxRAt6Lx5q9X+Ng3iho+jHqE3rQ9aeqnzxe G4qfVLRANVZJzhqNDBuJkUzCHcR4kqylq/ciYl8YEEealZGMg2EOSn3iNJLcuZko QB3fGqav3XcbyzLRPDqJgzAb0VJVNxPW952jZoxG2MaGORGOYAmicdx8mKNbSiiV kvDhl2b0xr5IIwI4kP3Js3oQa38ZDMq4ptauntu4fF6yHmCtUgH0GTmJOmeHTPPo wXxWprr6VRMm40epFnkh6zhj0SpGPmRMir5CvZCxyaNGNQ== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=20180501; b=M1 PMgxZFLdT5bI56EbgwGxP5ZWX7rF/kSUb4DD9rkYc49tBTyOjF/2BO1hpkYCmHuE 9/JHIkvGxqTOK0zGOHrzaiUgntp+u/KyImVGsukXsTD8fCsI3biLVrtqZsRRTGZn DGvjkgXzEdsqKliqsBwQg+s9ZKenvIabmM3DG75gpWpwVA4RnFqRyxy+gHXoPCIe MItiVR5obxPg3+C849jzJN81GNGkVnWCXzHPMDC1OoTceC+gll5PQMuIsPbqpM/S 2JUp+XpJ9E7ajAMUukBmwc5oeVj1iWqJLAwIWXjMAENrcwJ1opG5aa2MsfIEzRxu FxcCJsu6TxxyxLMuro8Q== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id a551c14b (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Thu, 20 May 2021 09:30:54 +0000 (UTC) Date: Thu, 20 May 2021 11:30:44 +0200 From: Michael Gmelin To: Dominic Fandrey Cc: Michael Gmelin , current@freebsd.org Subject: Re: zpool upgrade and bootcode on 13-RELEASE Message-ID: <20210520113044.002e662b@bsd64.grem.de> In-Reply-To: <5be6d214-7175-2a85-fc28-6e47de419b53@bsdforen.de> References: <20210519153757.4e00e96f@bsd64.grem.de> <5be6d214-7175-2a85-fc28-6e47de419b53@bsdforen.de> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= 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-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Fm4H93mqJz4vP3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] On Thu, 20 May 2021 10:14:00 +0200 Dominic Fandrey wrote: > 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 Thanks, this looks useful, I might take a look at it for future use. My question wasn't *how* to update the bootloader though (I've been doing this for almost a decade now), but *if* it was still necessary after running 'zpool upgrade', given that the warning message that used to be there disappeared in 13. This has been been answered, thanks again. I opened a PR asking to bring a similar warning back in, let's see if that's easily possible, given that we're using OpenZFS as the upstream now. Cheers, Michael -- Michael Gmelin