Skip to content

Commit

Permalink
os-helpers-efi: silence od stderr
Browse files Browse the repository at this point in the history
When parsing an efivar value, od will complain if a given file does not
exist, such as the SecureBoot variable.

Silence stderr to ignore this.

Change-type: patch
Signed-off-by: Joseph Kogut <[email protected]>
  • Loading branch information
jakogut committed Sep 12, 2024
1 parent b81a2d7 commit 9b7de1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
EFI_GLOBAL_VARIABLE_GUID="8be4df61-93ca-11d2-aa0d-00e098032b8c"

parse_efivar_val() {
od --address-radix=n --format=u1 "$1" \
od --address-radix=n --format=u1 "$1" 2>/dev/null \
| tr -s "' '" \
| cut -d ' ' -f6
}
Expand Down

0 comments on commit 9b7de1c

Please sign in to comment.