chromeos-st-touch: fix reboot loop caused by flash faliure

We are using the wrong board name read from /etc/lsb-release. Release
images has board name 'eve-signed' instead of 'eve', which causes
st_flash to fail because of this incorrect filename.
Since the section of code is for Eve, and should be removed in the
future, we hard code the board name for now. A check is also added to
skip reboot of st_flash failed to prevent bootloop.

Signed-off-by: Wei-Ning Huang <wnhuang@google.com>

BUG=b:38506987
TEST=on a release image with board name 'eve-signed', firmware update
     sitll works.

Change-Id: Ib9b87e4a9efc2b02abc11b75ca2f65a95c146736
Reviewed-on: https://chromium-review.googlesource.com/513765
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
Reviewed-by: Tai-hsu Lin <sheckylin@google.com>
Commit-Queue: Wei-Ning Huang <wnhuang@chromium.org>
Trybot-Ready: Wei-Ning Huang <wnhuang@chromium.org>
1 file changed
tree: 7c67f93c1d8b648d27face4aeb3c650feb007cfd
  1. host_scripts/
  2. policies/
  3. scripts/
  4. LICENSE
  5. OWNERS
  6. README