Skip to content

Commit

Permalink
fix(tpm2-tss): add tpm2 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbg authored and haraldh committed May 3, 2021
1 parent 8743b07 commit 8f99fad
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions modules.d/91tpm2-tss/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# Prerequisite check(s) for module.
check() {

# If the binary(s) requirements are not fulfilled the module can't be installed.
require_binaries tpm2 || return 1

# Return 255 to only include the module, if another module requires it.
return 255

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

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

}

0 comments on commit 8f99fad

Please sign in to comment.