David James 0103b59138 Clean up update_bootloaders.sh to avoid sleeping.
Right now update_bootloaders.sh occasionally sleeps for 5 seconds if the
developer machine has gvfs-gdu-volume-monitor installed. This sleep was
only necessary because the script pointlessly mounted the device and then
immediately unmounted it, thus triggering a race condition.

In this commit, I've removed the pointless mount/unmount, thus avoiding this
race. This removes the need for the sleep and for retrying the umount.

I also cleaned up the error checking so that failures to cleanup fail
the whole script now.

BUG=none
TEST=Run build_image.sh several times, verify it doesn't sleep for 5 seconds
     anymore. Also run remote trybot runs.

Change-Id: Iaa715e9644292f97356a341d17b147be2a5178d9
Reviewed-on: https://gerrit.chromium.org/gerrit/24632
Commit-Ready: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2012-06-07 20:48:51 -07:00
2012-06-05 03:03:11 -07:00
2011-12-14 20:57:10 -08:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2011-08-26 13:04:29 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-06-07 12:07:43 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
Description
image build and composition scripts for Flatcar Container Linux
BSD-3-Clause 177 MiB
Languages
Shell 93%
Python 6.9%