mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-20 09:16:21 +00:00
use the new tpmtotp shell scripts
This commit is contained in:
parent
0e16afe17a
commit
9a85bc22d9
10
initrd/init
10
initrd/init
@ -24,18 +24,14 @@ echo
|
||||
hwclock -l -s
|
||||
|
||||
# Verify the user's TPM secret
|
||||
date
|
||||
if [ -r /secret.totp ]; then
|
||||
echo
|
||||
echo -n "Verify TPM PCR: "
|
||||
unsealtotp /secret.totp
|
||||
echo
|
||||
else
|
||||
echo "TPM TOTP:"
|
||||
if ! unsealtotp.sh ; then
|
||||
echo '!!!!!'
|
||||
echo '!!!!! TPM TOTP secret not found.'
|
||||
echo '!!!!! This firmware can not be trusted.'
|
||||
echo '!!!!!'
|
||||
fi
|
||||
echo
|
||||
|
||||
|
||||
# Start an interactive shell
|
||||
|
@ -15,6 +15,11 @@ tpmtotp_dir := tpmtotp-$(tpmtotp_version)
|
||||
tpmtotp_output := \
|
||||
sealtotp \
|
||||
unsealtotp \
|
||||
totp \
|
||||
base32 \
|
||||
qrenc \
|
||||
sealtotp.sh \
|
||||
unsealtotp.sh \
|
||||
util/nv \
|
||||
util/nv_definespace \
|
||||
util/nv_readvalue \
|
||||
@ -26,5 +31,11 @@ tpmtotp_output := \
|
||||
util/physicalpresence \
|
||||
util/physicalsetdeactivated \
|
||||
util/getcapability \
|
||||
util/sealfile2 \
|
||||
util/unsealfile \
|
||||
util/counter_create \
|
||||
util/counter_increment \
|
||||
util/counter_read \
|
||||
util/counter_release \
|
||||
|
||||
tpmtotp_configure :=
|
||||
|
Loading…
x
Reference in New Issue
Block a user