]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: also require /dev/tpm0 to be around before tpm2.target can be reached
authorLennart Poettering <lennart@poettering.net>
Wed, 26 Feb 2025 21:41:34 +0000 (22:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Mar 2025 11:37:48 +0000 (12:37 +0100)
commitdaae8f858d5b5fd0b409de5caa175f8b2bbd8d01
treee6082056943bc27fe51b63d7c704524eb230d00b
parent41d9ed93d9089f0d18da4bbade8986ba6a35349a
units: also require /dev/tpm0 to be around before tpm2.target can be reached

While we typically just use /dev/tpmrm0 for accessing the TPM chip (i.e
via the kernel's own resource manager), some sysfs properties that
matter are on /dev/tpm0 only (i.e. the version without the kernel TPM
resource manager). Hence, wait for both to show up in tpm2.target, so
that we can be sure the full API is available.

This matters because we want to access /sys/class/tpm/tpm0/ppi/request
in the next commit.
units/tpm2.target