entd: Cope with timeout during user pin initialization
Turns out that when we fail due to a timeout when initializing the user pin, we end up without some
important files in the TOK_OBJ directory. This patch detects that problem and removes the broken
token. It also makes sure the script emits a log line explaining what it found each time it runs.
BUG=chromium-os:6064
TEST=tested various permutations in chroot.
Change-Id: I60c6131224da24bae71abd4c9287216688f1e5cf
Review URL: http://codereview.chromium.org/3200009
1 file changed