From aaf6e48273c7e9bed8c07bd701b82ad0757c9a05 Mon Sep 17 00:00:00 2001 From: Lee Jones Date: Apr 28 2017 10:34:24 +0000 Subject: arm-image-installer: Wait for new SD card partitions to re-probe Without this sleep, the check for the 4th partition sometimes fails. Not becuase we are operating on an old partition format, but becuase the OS hasn't updated its knowledge of the new SD card partitions yet. Signed-off-by: Lee Jones --- diff --git a/arm-image-installer b/arm-image-installer index d7d7714..87bc9e0 100755 --- a/arm-image-installer +++ b/arm-image-installer @@ -235,6 +235,7 @@ if [ "$IMAGE" != "" ] ; then fi # check to see how many partitions on the image partprobe "$MEDIA" +sleep 1 case $MEDIA in "/dev/mmcblk"*) if [ -e "$MEDIA"p4 ]; then