mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-16 15:29:09 +00:00
On platforms using CONFIG_BOOT_EXTRA_TTYS multiple processes may try to access TPM at the same time, failing with EBUSY. The order of execution is unpredictable, so the error may appear on main console, secondary one, or neither of them if the calls are sufficiently staggered. Try up to three times (including previous one) with small delays in case of error, instead of immediately scaring users with "you've been pwned" message. Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>