tpm2-setup: Don't fail if we can't access the TPM due to authorization failure
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 May 2024 14:20:11 +0000 (16:20 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Jun 2024 18:41:01 +0000 (20:41 +0200)
commit30df42a9277bbf138d52887c9b79e452db425585
tree6dd251f32e6f11636f0da98ebd96683d7085bb18
parent514ef0f93b76cbe0ba6b4de07a7b21fd0c2b7bae
tpm2-setup: Don't fail if we can't access the TPM due to authorization failure

The TPM might be password/pin protected for various reasons even if
there is no SRK yet. Let's handle those cases gracefully instead of
failing the unit as it is enabled by default.

(cherry picked from commit d6518003f8ebbfb6f85dbf227736ae05b0961199)
catalog/systemd.catalog.in
src/shared/tpm2-util.c
src/systemd/sd-messages.h
src/tpm2-setup/tpm2-setup.c
units/systemd-tpm2-setup-early.service.in
units/systemd-tpm2-setup.service.in