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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Jun 2024 09:31:21 +0000 (18:31 +0900)
commitd6518003f8ebbfb6f85dbf227736ae05b0961199
tree040a876d50056be1d18acd434d5dd4522348dc82
parent0ef63b11aa380e3c734db151dd11eef1414bee7b
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.
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