HomeFreeBSD

efivar: Attempt to fix setting/printing/deleting EFI vars with '-' in their name

Description

efivar: Attempt to fix setting/printing/deleting EFI vars with '-' in their name

Due to how we're parsing UUIDs, we were disallowing setting, printing or
deleting any UEFI variable with a '-' in it when you attempted to do that
operation with the exact name (wildcard reporting was unaffected). Fix the
parser to loop over all the dashes in the name and only give up when all
possible matches are exhausted.

Reviewed by: markj@
Sponsored by: Netflix, Inc
Differential Revision: https://reviews.freebsd.org/D29620

(cherry picked from commit 0292a5c95f14b1ad3df39ee71c51cc830864a3aa)

Details

Provenance
impAuthored on Apr 9 2021, 10:35 PM
vangyzenCommitted on Mar 2 2022, 9:56 PM
Differential Revision
D29620: efivar: Attempt to fix setting/printing/deleting EFI vars with '-' in their name
Parents
rG36a9057e043b: efivar: Add --quiet to not report errors
Branches
Unknown
Tags
Unknown