mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-23 03:22:01 +01:00
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:
parent
4a9d94b262
commit
5d75098098
@ -686,6 +686,7 @@ def main(argv):
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
time.sleep(SERVER_STARTUP_WAIT)
|
time.sleep(SERVER_STARTUP_WAIT)
|
||||||
|
cros_env.ssh_cmd.Run('start', 'update-engine', hide_stderr=True)
|
||||||
if cros_env.StartClient(port):
|
if cros_env.StartClient(port):
|
||||||
exit_status = 0
|
exit_status = 0
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user