Skip to content

Commit

Permalink
initrd/bin/seal-hotpkey: fix regression of hotp_verification 1.7+ ver…
Browse files Browse the repository at this point in the history
…sion bump output parsing for <nk3

As tested working with old librem key fw 0.10: works
Log entry of additioanl 30 minutes for linuxboot#1875 (I cannot not fix with my time @jans23 linuxboot#1866, since nk3 is not the only dongle support by Heads)

Signed-off-by: Thierry Laurion <[email protected]>
  • Loading branch information
tlaurion committed Dec 21, 2024
1 parent d2b8459 commit 696ecf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion initrd/bin/seal-hotpkey
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ if lsusb | grep -q "20a0:42b2"; then
admin_pin_retries=$(echo "$hotp_token_info" | grep "Secrets app PIN counter:" | cut -d ':' -f 2 | tr -d ' ')
prompt_message="Secrets app"
else
admin_pin_retries=$(echo "$hotp_token_info" | grep "Card counters: Admin" | cut -d ':' -f 2 | tr -d ' ')
# <nk3
admin_pin_retries=$(echo "$hotp_token_info" | grep "Card counters: Admin" | grep -o 'Admin [0-9]*' | grep -o '[0-9]*')
prompt_message="GPG Admin"
fi

Expand Down

0 comments on commit 696ecf5

Please sign in to comment.