crossystem: support clear_tpm_owner_request on TPM2.0 simulator
This CL would give VM boards the ability to hard reset TPM.
When clearing TPM ownership on real devices, there are two things
1. TPM reset all of its NVRAM data.
2. mount-encrypted can't decrypt old encrypted partition.
The TPM2.0 simulator put its NV space at "/var/lib/trunks/NVChip".
And "/var/lib" is under encrypted partition.
Remove the mount-encrypted key would cause mount-encrypted lost the
encrypted partition on next boot, and it would simply achieve those
Signed-off-by: Yi Chou <firstname.lastname@example.org>
Reviewed-by: Joel Kitching <email@example.com>
2 files changed