summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2016-11-22 09:41:38 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-22 11:52:11 -0800
commitc66cbc3440b03440d591274b188ea62b2de7af80 (patch)
tree6fd5d74c7fe97880b839263a33b415ee950667ae /scripts
parentdee2a61b9f9952e4243720ba505f86e7f3fce04e (diff)
downloadvboot-c66cbc3440b03440d591274b188ea62b2de7af80.tar.gz
utility: Allow chromeos-tpm-recovery to return failure.
When some of the space re-creation procedure failed, chromeos-tpm-recovery should exit with non-zero value and not saying TPM is successfully recovered. However, there are few known issues: - 0x1009 is not needed in TPM2. - The space is not created in TPM2. - tlcl does not support define spaces with policies yet (crosbug.com/p/59594). As a result, we want to return failure only if writing any of the two spaces (0x1007, 0x1008) fails. This change also revised chromeos-tpm-recovery so it won't exit with unbound variable error due to early exit without having daemon_was_running variable. BRANCH=None BUG=chrome-os-partner:60099 TEST=For boards with TPM and TPM2, do: build_image --board $BOARD factory_install; Boot factory install shim, select 'I' and get TPM recovered. Change-Id: I3f79b02cdf77ac61cf1361033c489604dcd603f2 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/412543 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions