Bug 277907 - efibootmgr(8) says '-u' is invalid option
Summary: efibootmgr(8) says '-u' is invalid option
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Mark Peek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-23 13:32 UTC by Anton Saietskii
Modified: 2024-04-08 23:26 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 Anton Saietskii 2024-03-23 13:32:24 UTC
$ sudo efibootmgr -u /boot/efi/EFI/BOOT/memtest64.efi
efibootmgr: invalid option -- u

But according to man page, there is such one:
     -u --efidev unix-path
             Displays the UEFI device path of unix-path.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-03-24 19:40:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=65904399db9167b0970e42e14642e1d6bdbf6d3a

commit 65904399db9167b0970e42e14642e1d6bdbf6d3a
Author:     Mark Peek <mp@FreeBSD.org>
AuthorDate: 2024-03-24 19:37:12 +0000
Commit:     Mark Peek <mp@FreeBSD.org>
CommitDate: 2024-03-24 19:37:12 +0000

    efibootmgr: allow -u as a valid option

    PR:             277907
    Reported by:    vsasjason@gmail.com
    MFC after:      1 week

 usr.sbin/efibootmgr/efibootmgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-03-31 16:59:27 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=811bd332abddf44a2f410fd04a6a61849d1b736a

commit 811bd332abddf44a2f410fd04a6a61849d1b736a
Author:     Mark Peek <mp@FreeBSD.org>
AuthorDate: 2024-03-24 19:37:12 +0000
Commit:     Mark Peek <mp@FreeBSD.org>
CommitDate: 2024-03-31 16:58:45 +0000

    efibootmgr: allow -u as a valid option

    PR:             277907
    Reported by:    vsasjason@gmail.com
    MFC after:      1 week

    (cherry picked from commit 65904399db9167b0970e42e14642e1d6bdbf6d3a)

 usr.sbin/efibootmgr/efibootmgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-03-31 16:59:28 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=14b2221ae7cee33b5b75d662da6a396ca5c46f95

commit 14b2221ae7cee33b5b75d662da6a396ca5c46f95
Author:     Mark Peek <mp@FreeBSD.org>
AuthorDate: 2024-03-24 19:37:12 +0000
Commit:     Mark Peek <mp@FreeBSD.org>
CommitDate: 2024-03-31 16:57:17 +0000

    efibootmgr: allow -u as a valid option

    PR:             277907
    Reported by:    vsasjason@gmail.com
    MFC after:      1 week

    (cherry picked from commit 65904399db9167b0970e42e14642e1d6bdbf6d3a)

 usr.sbin/efibootmgr/efibootmgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 Anton Saietskii 2024-04-05 14:16:05 UTC
(In reply to commit-hook from comment #3)

Guessing it's not significant enough for a patch release? I can pull this patch manually and test on releng/
Comment 5 Mark Peek freebsd_committer freebsd_triage 2024-04-08 23:26:54 UTC
(In reply to Anton Saietskii from comment #4)

The use of the long form "efibootmgr --efidev unixpath" can be used until this becomes available in a release build.