diff options
author | Freya Murphy <freya@freyacat.org> | 2023-12-09 13:52:20 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2023-12-09 13:52:20 -0500 |
commit | 94da5270c7d916541c33ac3ea6c6d00e74b65245 (patch) | |
tree | 8ad014bdaf66aa61faca0a8574ff11bdc2208414 /tpm2_install | |
download | luks-tpm-94da5270c7d916541c33ac3ea6c6d00e74b65245.tar.gz luks-tpm-94da5270c7d916541c33ac3ea6c6d00e74b65245.tar.bz2 luks-tpm-94da5270c7d916541c33ac3ea6c6d00e74b65245.zip |
initial
Diffstat (limited to 'tpm2_install')
-rwxr-xr-x | tpm2_install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tpm2_install b/tpm2_install new file mode 100755 index 0000000..5657823 --- /dev/null +++ b/tpm2_install @@ -0,0 +1,31 @@ +#!/bin/bash + +build() { + add_module "tpm_tis" + add_module "tpm_crb" + + add_binary "/usr/bin/tpm2_unseal" + add_binary "/usr/bin/tpm2_policypcr" + add_binary "/usr/bin/tpm2_policyauthorize" + add_binary "/usr/bin/tpm2_flushcontext" + add_binary "/usr/bin/tpm2_startauthsession" + add_binary "/usr/bin/tpm2_load" + + add_binary "/usr/lib/libtss2-tcti-device.so.0" + + add_file "/etc/tpm2/policy" + add_file "/etc/tpm2/rsaname" + add_file "/etc/tpm2/verification" + add_file "/etc/tpm2/pcr" + add_file "/etc/tpm2/keyloc" + + add_runscript +} + +help() { + cat <<EOF +todo +EOF +} + +# vim: set ft=sh ts=4 sw=4 et: |