Bug 263576 - efibootmgr(8) output: prepend: Boot
Summary: efibootmgr(8) output: prepend: Boot
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: feature, needs-qa, uefi
Depends on:
Blocks:
 
Reported: 2022-04-26 09:45 UTC by Slawomir Wojciech Wojtczak
Modified: 2022-12-05 16:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slawomir Wojciech Wojtczak 2022-04-26 09:45:21 UTC
Hi.

Not sure if I should submit that as a bug - maybe more like a readability/feature request ... the efibootmgr(8) output adds Boot word to each entry which IMHO makes the output less readable.

Here is the default output:

# efibootmgr                
BootCurrent: 0009
Timeout    : 0 seconds
BootOrder  : 001A, 0006, 0007, 000C, 0008, 000E, 000F, 000A, 000B, 0009, 0010, 0011, 0012, 000D, 0013
 Boot001A* FreeBSD
 Boot0006* USB CD
 Boot0007* USB FDD
 Boot000C* USB HDD
 Boot0008* ATAPI CD0
 Boot000E* ATAPI CD1
 Boot000F* ATAPI CD2
 Boot000A* ATA HDD0
 Boot000B* ATA HDD1
+Boot0009* ATA HDD2
 Boot0010  Other CD
 Boot0011* ATA HDD3
 Boot0012* ATA HDD4
 Boot000D* PCI LAN
 Boot0013  Other HDD

Here is the output with 'Boot' word from the output:

# efibootmgr | sed s/Boot//g
Current: 0009
Timeout    : 0 seconds
Order  : 001A, 0006, 0007, 000C, 0008, 000E, 000F, 000A, 000B, 0009, 0010, 0011, 0012, 000D, 0013
 001A* FreeBSD
 0006* USB CD
 0007* USB FDD
 000C* USB HDD
 0008* ATAPI CD0
 000E* ATAPI CD1
 000F* ATAPI CD2
 000A* ATA HDD0
 000B* ATA HDD1
+0009* ATA HDD2
 0010  Other CD
 0011* ATA HDD3
 0012* ATA HDD4
 000D* PCI LAN
 0013  Other HDD

Judge for yourself and close if you think its useless.

Regards.
Comment 1 Slawomir Wojciech Wojtczak 2022-12-05 16:03:46 UTC
After some thought I would even squeeze it little more to something like that:

# efibootmgr
Current: 0009
Timeout: 0 seconds
Order: 001A>0006>0007>000C>0008>000E>000F>000A>000B>0009>0010>0011>0012>000D>0013
  001A* FreeBSD
  0006* USB CD
  0007* USB FDD
  000C* USB HDD
  0008* ATAPI CD0
  000E* ATAPI CD1
  000F* ATAPI CD2
  000A* ATA HDD0
  000B* ATA HDD1
 +0009* ATA HDD2
  0010  Other CD
  0011* ATA HDD3
  0012* ATA HDD4
  000D* PCI LAN
  0013  Other HDD

... or like that:

# efibootmgr
Current: 0009
Timeout: 0 seconds
Order: 001A 0006 0007 000C 0008 000E 000F 000A 000B 0009 0010 0011 0012 000D 0013
  001A* FreeBSD
  0006* USB CD
  0007* USB FDD
  000C* USB HDD
  0008* ATAPI CD0
  000E* ATAPI CD1
  000F* ATAPI CD2
  000A* ATA HDD0
  000B* ATA HDD1
 +0009* ATA HDD2
  0010  Other CD
  0011* ATA HDD3
  0012* ATA HDD4
  000D* PCI LAN
  0013  Other HDD



Judge for yourself.

Regards.