Cache VPD files in unencrypted partition.
At very early stage of boot time, the /var/log is not available so that
chromeos-boot-alert cannot get the VPD info.
So, this CL moves the cache files to /mnt/stateful_partition/unencrypted/cache
and create symlinks to be backward-compatible.
Also rename the full-v2.cache to full-v2.txt.
BUG=chromium-os:32799
TEST=Execute dump_vpd_log on link:
legacy machine with all cache files stored in encrypted partition:
after running, all are re-generated in unencrypted.
symlinks are created correctly.
full-v2.cache is removed.
dump_vpd_log --clean:
make sure all cache files are removed.
Re-run this script:
.../unencrypted/.../*.txt contain real data.
/var/log/.../*.txt point to .../unencrypted/...
/var/log/vpd2.0.txt becomes a symlink and points to unencrypted.
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Change-Id: Iaded001a00cfb6fef50db5eb238945bfd1076cbf
Reviewed-on: https://gerrit.chromium.org/gerrit/28812
Reviewed-by: Kees Cook <keescook@chromium.org>
Commit-Ready: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
Tested-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
1 file changed