mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-18 02:39:59 +00:00
oem-factory-reset: Use tpmr reset
tpm-reset is just a prompt for the password followed by tpmr reset. oem-factory-reset already bypasses the prompt, just call tpmr reset directly. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
ff481b98fb
commit
b21d8f7a94
@ -610,10 +610,7 @@ fi
|
||||
## reset TPM and set password
|
||||
if [ "$CONFIG_TPM" = "y" ]; then
|
||||
echo -e "\nResetting TPM...\n"
|
||||
{
|
||||
echo $TPM_PASS
|
||||
echo $TPM_PASS
|
||||
} | /bin/tpm-reset >/dev/null 2>/tmp/error
|
||||
tpmr reset "$TPM_PASS" >/dev/null 2>/tmp/error
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
ERROR=$(tail -n 1 /tmp/error | fold -s)
|
||||
|
Loading…
Reference in New Issue
Block a user