Date: Thu, 24 Feb 2022 09:55:37 -0700 From: Warner Losh <imp@bsdimp.com> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: Alexander Leidinger <Alexander@leidinger.net>, FreeBSD Stable Mailing List <freebsd-stable@freebsd.org> Subject: Re: bootcode update after zpool upgrade Message-ID: <CANCZdfoSrYSv0jJtiT9W=m%2B8ZuwJQ2shUTR0q4sbx9BJPPZeCw@mail.gmail.com> In-Reply-To: <5715fdc2-fb94-99d4-7a11-fe0666807866@quip.cz> References: <20220224104322.Horde.akByDDeJzjTUIyGt_Few2RI@webmail.leidinger.net> <5715fdc2-fb94-99d4-7a11-fe0666807866@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000040ffdd05d8c67480 Content-Type: text/plain; charset="UTF-8" On Thu, Feb 24, 2022 at 4:49 AM Miroslav Lachman <000.fbsd@quip.cz> wrote: > On 24/02/2022 10:43, Alexander Leidinger wrote: > > Quoting Miroslav Lachman <000.fbsd@quip.cz> (from Wed, 23 Feb 2022 > > >> I am not sure what I should update. This machine is EFI boot only > >> (this is the only one EFI machine we have). > > > >> Should I run: > >> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 nvd0 > >> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 nvd1 > > > > This is the bootcode zpool upgrade talks about. > > > >> Or should I update EFI partitions? (if so, then how?) > > > > The EFI partition contains the loader, not the bootcode. > > > > While we are at it, I'm still looking for the place where I can find > > which features the bootcode supports. Not all features are supported for > > a root pool. > > Thank you for the clarification! > If you've updated your ZFS pool and have an old system, you do need to update the EFI boot code. None of the mbr stuff is used for EFI booting. If you have an old installation, it may be small. So ideally, you'd copy over /boot/loader.efi to ESP:efi/boot/bootx64.efi. However, it may be too big if you have an ESP created by the old installer. In that case, you'll need to either create a new, larger ESP, or copying /boot/boot1.efi instead. Warner --00000000000040ffdd05d8c67480 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Thu, Feb 24, 2022 at 4:49 AM Miros= lav Lachman <<a href=3D"mailto:000.fbsd@quip.cz">000.fbsd@quip.cz</a>>= ; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px= 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 24/0= 2/2022 10:43, Alexander Leidinger wrote:<br> > Quoting Miroslav Lachman <<a href=3D"mailto:000.fbsd@quip.cz" targe= t=3D"_blank">000.fbsd@quip.cz</a>> (from Wed, 23 Feb 2022 <br> <br> >> I am not sure what I should update. This machine is EFI boot only = <br> >> (this is the only one EFI machine we have).<br> > <br> >> Should I run:<br> >> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 nvd0<br> >> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 nvd1<br> > <br> > This is the bootcode zpool upgrade talks about.<br> > <br> >> Or should I update EFI partitions? (if so, then how?)<br> > <br> > The EFI partition contains the loader, not the bootcode.<br> > <br> > While we are at it, I'm still looking for the place where I can fi= nd <br> > which features the bootcode supports. Not all features are supported f= or <br> > a root pool.<br> <br> Thank you for the clarification!<br></blockquote><div><br></div><div>If you= 've updated your ZFS pool and have an old system, you do need to update= </div><div>the EFI boot code. None of the mbr stuff is used for EFI booting= .</div><div><br></div><div>If you have an old installation, it may be small= . So ideally, you'd copy over /boot/loader.efi</div><div>to ESP:efi/boo= t/bootx64.efi. However, it may be too big if you have an ESP created by the= </div><div>old installer. In that case, you'll need to either create a = new, larger ESP, or copying=C2=A0/boot/boot1.efi</div><div>instead.</div><d= iv><br></div><div>Warner</div></div></div> --00000000000040ffdd05d8c67480--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoSrYSv0jJtiT9W=m%2B8ZuwJQ2shUTR0q4sbx9BJPPZeCw>