Page MenuHomeFreeBSD

gptboot.efi: Add man page
ClosedPublic

Authored by imp on Apr 5 2021, 7:08 PM.
Tags
None
Referenced Files
F80184714: D29591.id.diff
Thu, Mar 28, 10:52 PM
F80138375: D29591.id86862.diff
Thu, Mar 28, 11:06 AM
Unknown Object (File)
Fri, Mar 8, 11:03 PM
Unknown Object (File)
Feb 10 2024, 2:20 AM
Unknown Object (File)
Feb 6 2024, 4:14 AM
Unknown Object (File)
Jan 12 2024, 2:39 AM
Unknown Object (File)
Jan 2 2024, 7:50 PM
Unknown Object (File)
Dec 23 2023, 5:04 AM

Details

Summary

Add a man page for gptboot.efi. Describe when and how to use this as it differes
from the BIOS cases. Include cross reference for the preferred method described
in efibootmgr(8) as well as cross links in both gptboot(8) and gptboot.efi(8) to
the other.

This man page was heavily copied from the gptboot.8 man page by Warren Block.
They are different enough to need separate man pages for clarity, but there's
enough similarity that I worry about the duplication. In the really long term,
gptboot(8) will disappear, so having the same info here will help when that
day comes.

Not fixed at this time is the need to document boot1.efi and to overhaul
loader.8 to fold in changes from the last several years.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38333
Build 35222: arc lint + arc unit

Event Timeline

imp requested review of this revision.Apr 5 2021, 7:08 PM
rpokala added inline comments.
stand/efi/gptboot/gptboot.efi.8
44

For BIOS-based computers,
.Xr gpart 8
is used instead.

BIOS-based systems use
.Xr gptboot 8
instead, which is installed with
.Xr gpart 8 .
51

When what is booted ...

67

BIOS so the next bootable item in the UEFI's Boot Manager's

firmware, so the next bootable item in the UEFIs Boot Manager's
68

list.

list is tried.
pstef added inline comments.
stand/efi/gptboot/gptboot.efi.8
51

I have trouble parsing this.

crees added a subscriber: crees.

A couple of suggestions inline.

stand/efi/gptboot/gptboot.efi.8
67

I wonder if you should put a comma here, or rewrite.

If it does not find an eligible partition, control is returned to the UEFI BIOS, so the next bootable item (...) list is tried.

269

Is that an alias? :)

Add better hints to look elsewhere and fix a typo.

With due attention to @rpokola 's comment above, great.

stand/efi/gptboot/gptboot.efi.8
67

Sorry, last one- I think rpakola's suggestion of s,BIOS,firmware, was right here as well.

imp marked 7 inline comments as done.Apr 5 2021, 7:39 PM

updating coming, mark everything as done since I think the next update addresses these items.

Rewrite text that was unclear based on feedback from reviewers.

minor copyright tweak due to all rights reserved being ambiguous otherwise.

start to crossref boot1.efi. loader.efi is still hopeless.

This is excellent. If duplication is a concern, maybe PARTITION ATTRIBUTES could just be a pointer to gptboot.8.

stand/efi/gptboot/gptboot.efi.8
54

You might make mechanism plural, as in the previous sentence.

221
222
stand/efi/gptboot/gptboot.efi.8
62

When what boots cannot depend on host-supplied UEFI variables, or
when bugs in the UEFI implementation prevent that,
.Nm
is used to bridge the gap.

Perhaps:

When deciding what to boot cannot depend on host-supplied UEFI variables,
or when bugs in the UEFI implementation prevent that,
.Nm
is used to bridge the gap.
67

"firmware"

imp marked 4 inline comments as done.Apr 5 2021, 8:02 PM
imp added inline comments.
stand/efi/gptboot/gptboot.efi.8
222

So this is now official? Cool.

imp marked an inline comment as done.

Changes from mhorne.

More from Ravi and move definition of ESP earlier to first use.

imp marked 2 inline comments as done.Apr 5 2021, 8:09 PM
imp added inline comments.
stand/efi/gptboot/gptboot.efi.8
62

reworded a little differently to avoid the maybe too informal / idiomatic 'bridge the gap'.

stand/efi/gptboot/gptboot.efi.8
39–58

Usually the expanded version comes first, then the initialization:

is installed in the EFI System Partition (ESP).
60

s/reply/rely/

imp marked an inline comment as done.

more nits from rpokala

imp marked 2 inline comments as done.Apr 6 2021, 3:16 AM
stand/efi/gptboot/gptboot.efi.8
262

gpart isn't used for UEFI, so you can drop that. But I'd add

.Xr gptboot 8

and

.Xr loader.efi 8

(vestigial though the latter may be at the moment).

stand/i386/gptboot/gptboot.8
43

.Xr gpart.efi 8

.Xr gptboot.efi 8
imp marked 2 inline comments as done.Apr 6 2021, 4:46 AM
imp added inline comments.
stand/efi/gptboot/gptboot.efi.8
262

gpart is used with UEFI to mark partitions as bootme or bootonce.

imp marked an inline comment as done.

update for latest feedback from rpokala

This revision is now accepted and ready to land.Apr 6 2021, 5:00 AM
This revision was automatically updated to reflect the committed changes.