From 32832777c6778a881b9389e3e3b325c101b4a131 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Tue, 4 Oct 2011 15:24:19 +0200 Subject: [PATCH] give disk some time to write parition table Signed-off-by: Steven Armstrong --- conf/type/__partition_msdos_apply/files/lib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/type/__partition_msdos_apply/files/lib.sh b/conf/type/__partition_msdos_apply/files/lib.sh index 01a817a8..f0859aab 100644 --- a/conf/type/__partition_msdos_apply/files/lib.sh +++ b/conf/type/__partition_msdos_apply/files/lib.sh @@ -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 $? }