mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-29 15:44:07 +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
|
## reset TPM and set password
|
||||||
if [ "$CONFIG_TPM" = "y" ]; then
|
if [ "$CONFIG_TPM" = "y" ]; then
|
||||||
echo -e "\nResetting TPM...\n"
|
echo -e "\nResetting TPM...\n"
|
||||||
{
|
tpmr reset "$TPM_PASS" >/dev/null 2>/tmp/error
|
||||||
echo $TPM_PASS
|
|
||||||
echo $TPM_PASS
|
|
||||||
} | /bin/tpm-reset >/dev/null 2>/tmp/error
|
|
||||||
fi
|
fi
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
ERROR=$(tail -n 1 /tmp/error | fold -s)
|
ERROR=$(tail -n 1 /tmp/error | fold -s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user