mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
We need to ensure that the NVMEM variable containing the seed is properly saved to flash, so we can restore it later whatever happens. Add a call to writevars() which triggers the NVMEM commit rather than accidentally waiting for it. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=cr50 BUG=b:35545754 TEST=run twice 'trunks_send --u2f_cert --crt=/tmp/mycert.crt' and hard-reboot the cr50 in between and see both certificates are fully identical. Change-Id: Iea4f9fdede4c0a2eeae1c59633caa16dbf70a66f Reviewed-on: https://chromium-review.googlesource.com/602241 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>