luks-tpm/tpm2_install

36 lines
782 B
Text
Raw Normal View History

2023-12-09 18:52:20 +00:00
#!/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/bin/tpm2_loadexternal"
add_binary "/usr/bin/tpm2_verifysignature"
2023-12-09 18:52:20 +00:00
add_binary "/usr/lib/libtss2-tcti-device.so.0"
add_file "/etc/tpm2/policy"
add_file "/etc/tpm2/rsaname"
add_file "/etc/tpm2/rsactx"
add_file "/etc/tpm2/rsapub"
add_file "/etc/tpm2/rsasig"
2023-12-09 18:52:20 +00:00
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: