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 <joseph@balena.io>
  • Loading branch information
jakogut committed Jun 14, 2024
1 parent cacc9bc commit bc0b6bf
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 bc0b6bf

Please sign in to comment.