Date: Sat, 16 Jul 2022 18:17:48 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Nuno Teixeira <eduardo@freebsd.org> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: About zfs upgrade Message-ID: <CB8A73EC-51CC-45F0-865E-72462DA595E5@FreeBSD.org> In-Reply-To: <CAFDf7U%2Bm1P5o56%2BefS1WVDoiVWwuCmZJW57ZTBOQcTpTX6yKog@mail.gmail.com> References: <CAFDf7U%2Bm1P5o56%2BefS1WVDoiVWwuCmZJW57ZTBOQcTpTX6yKog@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_7D4187C9-4688-4E1D-B057-F9E07D0901E9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 16 Jul 2022, at 18:09, Nuno Teixeira <eduardo@freebsd.org> wrote: > I'm about to upgrade zfs pool and I need to know the command to update = boot code on my efi config: > --- > gpart show > =3D> 40 2000409184 nvd0 GPT (954G) > 40 532480 1 efi (260M) > 532520 2008 - free - (1.0M) > 534528 8388608 2 freebsd-swap (4.0G) > 8923136 1991485440 3 freebsd-zfs (950G) > 2000408576 648 - free - (324K) > --- > Handbook says: > gpart bootcode -p /boot/boot1.efifat -i 1 ada1 >=20 > Should I use: > gpart bootcode -p /boot/boot1.efifat -i 1 nvd0p1 ? For gpart, you should specify the base device, i.e. nvd0. The "-i 1" = option indicates the partition. In any case, assuming FreeBSD 13 or later, you can just mount the EFI = partition and copy loader.efi over: mount -t msdosfs /dev/nvd0p1 /mnt cp /mnt/efi/boot/bootx64.efi /mnt/efi/boot/bootx64.old cp /boot/loader.efi /mnt/efi/boot/bootx64.efi That way you could also revert to bootx64.old if things go wrong. -Dimitry --Apple-Mail=_7D4187C9-4688-4E1D-B057-F9E07D0901E9 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYtLkrQAKCRCwXqMKLiCW o32cAKCxPFRZPdq3d5wWwphp317Az3xQEwCgh8ScImrq+0405UZXWg8ckIdOT2M= =1dlt -----END PGP SIGNATURE----- --Apple-Mail=_7D4187C9-4688-4E1D-B057-F9E07D0901E9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CB8A73EC-51CC-45F0-865E-72462DA595E5>