Sync after dd to disk in image_to_usb script.

Fix the bug happened to me that the script completed but the data haven't completely been written to disk.

Review URL: http://codereview.chromium.org/2831001
This commit is contained in:
Tom Wai-Hong Tam 2010-06-15 10:29:05 +08:00
parent fe3d8268f9
commit 0635a240d2

View File

@ -214,6 +214,7 @@ then
echo "Copying ${SRC_IMAGE} to ${FLAGS_to}..." echo "Copying ${SRC_IMAGE} to ${FLAGS_to}..."
sudo dd if="${SRC_IMAGE}" of="${FLAGS_to}" bs=4M sudo dd if="${SRC_IMAGE}" of="${FLAGS_to}" bs=4M
sync
echo "Done." echo "Done."
else else