Start update_engine before doing re-imaging.

Sometimes update_engine isn't running on the device because of a possibly bad
Chrome, etc. So don't assume it is running and always attempt to start it before
updating.

BUG=none
TEST=stop update-engine on the device.
    ./bin/cros_image_to_target.py ... works.

Change-Id: I9aeaed80a9a82f9f685e58774fa987877ec635c9
Reviewed-on: https://gerrit.chromium.org/gerrit/40285
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: asharif <asharif@chromium.org>
Tested-by: asharif <asharif@chromium.org>
This commit is contained in:
Ahmad Sharif 2012-12-28 16:26:50 -08:00 committed by ChromeBot
parent 4a9d94b262
commit 5d75098098

View File

@ -686,6 +686,7 @@ def main(argv):
else:
try:
time.sleep(SERVER_STARTUP_WAIT)
cros_env.ssh_cmd.Run('start', 'update-engine', hide_stderr=True)
if cros_env.StartClient(port):
exit_status = 0
except KeyboardInterrupt: