From b857e562b5cbe2de0a26544f1728766566e20ef7 Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Fri, 22 Oct 2021 00:02:30 +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. Uses ConditionSecurity introduced in systemd v248 Fixes flatcar-linux/Flatcar#208 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..9aad400d9b 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 @@ -1,6 +1,7 @@ [Unit] Description=TCG Core Services Daemon ConditionPathExists=/dev/tpm0 +ConditionSecurity=!tpm2 [Service] User=tss