From b50b53dad27652773dac8f09dd2883c6fe49c654 Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Wed, 6 Jun 2018 09:28:14 -0400 Subject: tpm2-abrmd-init: fix for /dev/tpmrmX In addition to the expected /dev/tpmX device nodes, newer Linux kernels now also create /dev/tpmrmX nodes. This causes the daemon's startup script to fail, meaning the abrmd daemon is not started automatically. Signed-off-by: Trevor Woerner --- meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd-init.sh b/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd-init.sh index c8dfb7d..9bb7da9 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd-init.sh +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd-init.sh @@ -27,7 +27,7 @@ case "${1}" in start) echo -n "Starting $DESC: " - if [ ! -e /dev/tpm* ] + if [ ! -e /dev/tpm? ] then echo "device driver not loaded, skipping." exit 0 -- cgit v1.2.3-54-g00ecf