Skip to content

Commit 8f99fad

Browse files
johannbgharaldh
authored andcommitted
fix(tpm2-tss): add tpm2 requirement
1 parent 8743b07 commit 8f99fad

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

modules.d/91tpm2-tss/module-setup.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# Prerequisite check(s) for module.
66
check() {
77

8+
# If the binary(s) requirements are not fulfilled the module can't be installed.
9+
require_binaries tpm2 || return 1
10+
811
# Return 255 to only include the module, if another module requires it.
912
return 255
1013

@@ -52,12 +55,4 @@ install() {
5255
{"tls/$_arch/",tls/,"$_arch/",}"libcurl.so.*" \
5356
{"tls/$_arch/",tls/,"$_arch/",}"libjson-c.so.*"
5457

55-
# Install the hosts local user configurations if enabled.
56-
if [[ $hostonly ]]; then
57-
inst_multiple -H -o \
58-
"$udevrulesdir"/60-tpm-udev.rules \
59-
/etc/tpm2-tss/fapi-config.json \
60-
"/etc/tpm2-tss/fapi-profiles/*.json"
61-
fi
62-
6358
}

0 commit comments

Comments
 (0)