From 0f2fde9beb3e3e2b430872bd9a767384f39431ce Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Thu, 21 Oct 2021 21:38:03 +0530 Subject: [PATCH] app-crypt/trousers: Skip tscd.service for TPM2 devices trousers supports TPM 1.2, and fails for TPM 2. This commits skips the tcsd service if TPM 2 is detected. Signed-off-by: Sayan Chowdhury --- .../coreos-overlay/app-crypt/trousers/files/tcsd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-crypt/trousers/files/tcsd.service b/sdk_container/src/third_party/coreos-overlay/app-crypt/trousers/files/tcsd.service index f1960f79f2..4eb1ec9dea 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-crypt/trousers/files/tcsd.service +++ b/sdk_container/src/third_party/coreos-overlay/app-crypt/trousers/files/tcsd.service @@ -4,6 +4,7 @@ ConditionPathExists=/dev/tpm0 [Service] User=tss +ExecCondition=/bin/bash -c "/usr/bin/test $(cat /sys/class/tpm/*/tpm_version_major | grep -m 1 1 || echo 0) -eq 1" ExecStart=/usr/sbin/tcsd -f [Install]