diff --git a/initrd/bin/oem-factory-reset b/initrd/bin/oem-factory-reset index 74f1cc6e..8031b94a 100755 --- a/initrd/bin/oem-factory-reset +++ b/initrd/bin/oem-factory-reset @@ -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)