mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
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:
parent
2acef61815
commit
18e38c33e6
@ -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>&/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
|
||||
|
Loading…
Reference in New Issue
Block a user