]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-70-TPM2: re-enable tpm2-setup test on Alpine/postmarketOS
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Dec 2025 18:54:57 +0000 (03:54 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 16 Dec 2025 21:10:12 +0000 (21:10 +0000)
After 64b5c5f593c8863316323568268e3d07f4f7cac7, the test passes on
Alpine/postmarketOS.

This partially reverts 9fafe89bcc91550f55a96f66972406ce678be2fb.

test/units/TEST-70-TPM2.tpm2-setup.sh

index 23cb85e30b2c143ac69c95a2c16106c76c134d42..72f784185850c7fb2c5f04a3c9e17d5addf5c7fc 100755 (executable)
@@ -11,16 +11,6 @@ if [[ ! -x "${SD_TPM2SETUP:?}" ]]; then
     exit 0
 fi
 
-. /etc/os-release
-if [[ "${ID_LIKE:-}" == alpine ]]; then
-    # For some unknown reasons, the test fails with the following:
-    # --------
-    # Couldn't find signature for this PCR bank, PCR index and public key.
-    # Failed to unseal secret using TPM2: No such device or address
-    # --------
-    exit 0
-fi
-
 "$SD_TPM2SETUP" --help
 "$SD_TPM2SETUP" --version
 "$SD_TPM2SETUP" --tpm2-device=list