mirror of
https://git.yoctoproject.org/meta-security
synced 2026-06-05 14:30:42 +00:00
tpm2-abrmd-init.sh: fix for /dev/tpmrmX
Newer kernels, in addition to the traditional /dev/tpmX device nodes, are now also creating /dev/tpmrmX device nodes. This causes this script to get confused and abort, meaning tpm2-abrmd does not get started during boot. Fix for https://github.com/flihp/meta-measured/issues/56 Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
72b05edff5
commit
6d059a9d34
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user