summaryrefslogtreecommitdiff
path: root/ironic_python_agent/shell/write_image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ironic_python_agent/shell/write_image.sh')
-rwxr-xr-xironic_python_agent/shell/write_image.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic_python_agent/shell/write_image.sh b/ironic_python_agent/shell/write_image.sh
index a89c68df..bcd6bfd3 100755
--- a/ironic_python_agent/shell/write_image.sh
+++ b/ironic_python_agent/shell/write_image.sh
@@ -43,6 +43,7 @@ DEVICE_SECTORS_COUNT=`blockdev --getsz $DEVICE`
dd bs=512 if=/dev/zero of=$DEVICE count=33
dd bs=512 if=/dev/zero of=$DEVICE count=33 seek=$((${DEVICE_SECTORS_COUNT} - 33))
sgdisk -Z $DEVICE
+udevadm settle
log "Imaging $IMAGEFILE to $DEVICE"