From 8f99fadabea8f279a9fe28473dba424eb38f8d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3hann=20B=2E=20Gu=C3=B0mundsson?= Date: Fri, 30 Apr 2021 12:43:54 +0000 Subject: [PATCH] fix(tpm2-tss): add tpm2 requirement --- modules.d/91tpm2-tss/module-setup.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/modules.d/91tpm2-tss/module-setup.sh b/modules.d/91tpm2-tss/module-setup.sh index e179383090..28af22a319 100755 --- a/modules.d/91tpm2-tss/module-setup.sh +++ b/modules.d/91tpm2-tss/module-setup.sh @@ -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 @@ -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 - }