From 5d7509809838af6f6dd5544fc6dbb7b0386d2486 Mon Sep 17 00:00:00 2001 From: Ahmad Sharif Date: Fri, 28 Dec 2012 16:26:50 -0800 Subject: [PATCH] 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 Commit-Queue: asharif Tested-by: asharif --- bin/cros_image_to_target.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/cros_image_to_target.py b/bin/cros_image_to_target.py index fc1351ccf7..dcbe97520a 100755 --- a/bin/cros_image_to_target.py +++ b/bin/cros_image_to_target.py @@ -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: