From 18e38c33e649a3c46f7ed0d97f19d4ec34fa97a4 Mon Sep 17 00:00:00 2001 From: Eric Li Date: Thu, 6 May 2010 16:47:39 -0700 Subject: [PATCH] Enforce image update from image_to_live. The issue here is if an previous update succeeded but reboot not happen, for what ever unknown reason, this host lost the ability to update again. I think some of the current update failure in the lab should be caused by this. Review URL: http://codereview.chromium.org/2031002 --- image_to_live.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/image_to_live.sh b/image_to_live.sh index 64e020f3ca..3eaa8fdeac 100755 --- a/image_to_live.sh +++ b/image_to_live.sh @@ -99,8 +99,10 @@ function run_auto_update { # Clear it out so we don't see a prior run and make sure it # exists so the first tail below can't fail if it races the # memento updater first write and wins. - remote_sh "rm -f ${update_file}; touch ${update_file}; \ - /opt/google/memento_updater/memento_updater.sh&/dev/null&" + remote_sh "rm -f /tmp/memento_autoupdate_completed; rm -f ${update_file}; \ + touch ${update_file}; \ + /opt/google/memento_updater/memento_updater.sh --force_update < /dev/null\ + >&/dev/null&" local update_error local output_file