forked from ungleich-public/cdist
give disk some time to write parition table
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
5940c21fba
commit
32832777c6
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ fdisk_command() {
|
||||||
|
|
||||||
debug fdisk_command "running fdisk command '${cmd}' on device ${device}"
|
debug fdisk_command "running fdisk command '${cmd}' on device ${device}"
|
||||||
printf "${cmd}\nw\n" | fdisk -c -u "$device"
|
printf "${cmd}\nw\n" | fdisk -c -u "$device"
|
||||||
|
# give disk some time
|
||||||
|
sleep 1
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue