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
This commit is contained in:
Eric Li 2010-05-06 16:47:39 -07:00
parent 2acef61815
commit 18e38c33e6

View File

@ -99,8 +99,10 @@ function run_auto_update {
# Clear it out so we don't see a prior run and make sure it # 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 # exists so the first tail below can't fail if it races the
# memento updater first write and wins. # memento updater first write and wins.
remote_sh "rm -f ${update_file}; touch ${update_file}; \ remote_sh "rm -f /tmp/memento_autoupdate_completed; rm -f ${update_file}; \
/opt/google/memento_updater/memento_updater.sh</dev/null>&/dev/null&" touch ${update_file}; \
/opt/google/memento_updater/memento_updater.sh --force_update < /dev/null\
>&/dev/null&"
local update_error local update_error
local output_file local output_file