From: Lennart Poettering Date: Wed, 26 Feb 2025 21:41:34 +0000 (+0100) Subject: units: also require /dev/tpm0 to be around before tpm2.target can be reached X-Git-Tag: v258-rc1~1176^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daae8f858d5b5fd0b409de5caa175f8b2bbd8d01;p=thirdparty%2Fsystemd.git 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. --- diff --git a/units/tpm2.target b/units/tpm2.target index ba51d5740e6..86f596fef8e 100644 --- a/units/tpm2.target +++ b/units/tpm2.target @@ -12,5 +12,5 @@ Description=Trusted Platform Module Documentation=man:systemd.special(7) # Make this a synchronization point on the first TPM device found -After=dev-tpmrm0.device -Wants=dev-tpmrm0.device +After=dev-tpmrm0.device dev-tpm0.device +Wants=dev-tpmrm0.device dev-tpm0.device