From 0635a240d26818c804a6f42df1437538039aece9 Mon Sep 17 00:00:00 2001 From: Tom Wai-Hong Tam Date: Tue, 15 Jun 2010 10:29:05 +0800 Subject: [PATCH] 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 --- image_to_usb.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/image_to_usb.sh b/image_to_usb.sh index 361750cb93..526319370a 100755 --- a/image_to_usb.sh +++ b/image_to_usb.sh @@ -214,6 +214,7 @@ then echo "Copying ${SRC_IMAGE} to ${FLAGS_to}..." sudo dd if="${SRC_IMAGE}" of="${FLAGS_to}" bs=4M + sync echo "Done." else