summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2018-06-06 09:28:14 -0400
committerJia Zhang <zhang.jia@linux.alibaba.com>2018-06-06 21:59:18 +0800
commitb50b53dad27652773dac8f09dd2883c6fe49c654 (patch)
tree050ea737a008dc41f985145194e5b781cb202a04
parente8df96cf47046fc6521d01a13f93d20c1b54dafe (diff)
downloadmeta-secure-core-b50b53dad27652773dac8f09dd2883c6fe49c654.tar.gz
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 <twoerner@gmail.com>
-rw-r--r--meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd-init.sh2
1 files changed, 1 insertions, 1 deletions
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
27 start) 27 start)
28 echo -n "Starting $DESC: " 28 echo -n "Starting $DESC: "
29 29
30 if [ ! -e /dev/tpm* ] 30 if [ ! -e /dev/tpm? ]
31 then 31 then
32 echo "device driver not loaded, skipping." 32 echo "device driver not loaded, skipping."
33 exit 0 33 exit 0