Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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)

[-- Attachment #2 --]
<div dir="ltr"><div>Hello all,</div><div><br></div><div>With so much discussion about updating boot, I feel confused about the correct procedure of doing it.</div><div><br></div><div>Like being said there are a &quot;24.3. Updating Bootcode&quot; in Handbook (WIP) that points to some important manuals.<br></div><div><br></div><div>There are 3 places where boot loader are:</div><br><div> ESP (EFI System Partition):</div><div>1 - (/boot/efi)/efi/boot/bootXXX.efi (default location)</div><div>2 - (/boot/efi)/efi/freebsd/loader.efi (FreeBSD reserved area)</div><div>Operating System:<br></div><div>3 - /boot/loader.efi</div><div><br></div><div>For what I&#39;ve read we should:</div><div> - backup: `cp /boot/efi/efi/boot/bootXXX.efi /boot/efi/efi/boot/bootXXX.efi.bkp`</div><div> - 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, &quot;/dev/XXXpN on /boot/efi (msdosfs, local)&quot;.</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="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UJv9QCuD27XDs2ihLiN21Rn6PeZjbJtWVOAAfHb8HHnHw>