Date: Tue, 16 Aug 2022 10:49:18 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: 24.3. Updating Bootcode Message-ID: <CAFDf7UJv9QCuD27XDs2ihLiN21Rn6PeZjbJtWVOAAfHb8HHnHw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--0000000000002970cb05e658aa03 Content-Type: text/plain; charset="UTF-8" Hello all, With so much discussion about updating boot, I feel confused about the correct procedure of doing it. Like being said there are a "24.3. Updating Bootcode" in Handbook (WIP) that points to some important manuals. There are 3 places where boot loader are: ESP (EFI System Partition): 1 - (/boot/efi)/efi/boot/bootXXX.efi (default location) 2 - (/boot/efi)/efi/freebsd/loader.efi (FreeBSD reserved area) Operating System: 3 - /boot/loader.efi For what I've read we should: - backup: `cp /boot/efi/efi/boot/bootXXX.efi /boot/efi/efi/boot/bootXXX.efi.bkp` - update: `cp /boot/loader.efi /boot/efi/efi/boot/bootXXX.efi` In this example we have a /boot/efi mount by the system, "/dev/XXXpN on /boot/efi (msdosfs, local)". What about (/boot/efi)/efi/freebsd/loader.efi (reserved area)? Is necessary to backup and update it too? Thanks, -- Nuno Teixeira FreeBSD Committer (ports) --0000000000002970cb05e658aa03 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello all,</div><div><br></div><div>With so much disc= ussion about updating boot, I feel confused about the correct procedure of = doing it.</div><div><br></div><div>Like being said there are a "24.3. = Updating Bootcode" in Handbook (WIP) that points to some important man= uals.<br></div><div><br></div><div>There are 3 places where boot loader are= :</div><br><div>=C2=A0ESP (EFI System Partition):</div><div>1 - (/boot/efi)= /efi/boot/bootXXX.efi (default location)</div><div>2 - (/boot/efi)/efi/free= bsd/loader.efi (FreeBSD reserved area)</div><div>Operating System:<br></div= ><div>3 - /boot/loader.efi</div><div><br></div><div>For what I've read = we should:</div><div>=C2=A0- backup: `cp /boot/efi/efi/boot/bootXXX.efi /bo= ot/efi/efi/boot/bootXXX.efi.bkp`</div><div>=C2=A0- update: `cp /boot/loader= .efi /boot/efi/efi/boot/bootXXX.efi`<br></div><div><br> </div><div>In this = example we have a /boot/efi mount by the system, "/dev/XXXpN on /boot/= efi (msdosfs, local)".</div><div><br></div><div>What about (/boot/efi)= /efi/freebsd/loader.efi (reserved area)? Is necessary to backup and update = it too?</div><div><br></div><div>Thanks,<br></div><div><br>-- <br><div dir= =3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div = dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD= Committer (ports)</span></div></div></div></div> --0000000000002970cb05e658aa03--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UJv9QCuD27XDs2ihLiN21Rn6PeZjbJtWVOAAfHb8HHnHw>