give disk some time to write parition table

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-04 15:24:19 +02:00
parent 5940c21fba
commit 32832777c6

View file

@ -12,6 +12,8 @@ fdisk_command() {
debug fdisk_command "running fdisk command '${cmd}' on device ${device}"
printf "${cmd}\nw\n" | fdisk -c -u "$device"
# give disk some time
sleep 1
return $?
}