Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include tpm2_getcap as required tpm2 pin binary #503

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/luks/dracut/clevis-pin-tpm2/module-setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#

check() {
require_binaries clevis-decrypt-tpm2 tpm2_createprimary tpm2_flushcontext tpm2_load tpm2_unseal || return 1
require_binaries clevis-decrypt-tpm2 tpm2_createprimary tpm2_flushcontext \
tpm2_load tpm2_unseal tpm2_getcap || return 1
require_any_binary tpm2_pcrread tpm2_pcrlist || return 1
return 0
}
Expand All @@ -30,7 +31,8 @@ depends() {
}

install() {
inst_multiple clevis-decrypt-tpm2 tpm2_createprimary tpm2_flushcontext tpm2_load tpm2_unseal
inst_multiple clevis-decrypt-tpm2 tpm2_createprimary tpm2_flushcontext \
tpm2_load tpm2_unseal tpm2_getcap
inst_multiple -o tpm2_pcrread tpm2_pcrlist
inst_libdir_file "libtss2-tcti-device.so*"
}
Expand Down