diff --git a/flash b/flash index 6cb2f36..ef2d3d6 100755 --- a/flash +++ b/flash @@ -418,7 +418,9 @@ case "${OSTYPE}" in wait_for_disk() { echo "Waiting for device $1" udevadm settle - sudo hdparm -z "$1" + while : ; do + sudo hdparm -z "$1" && break + done } # Find the device name of the boot partition