mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
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:
parent
fe3d8268f9
commit
0635a240d2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user