Ignore fs correction if kpartx isn't installed
@@ -5,6 +5,12 @@ if [ ! -f "$1" ]; then
exit 1
fi
+KPARTX=`which kpartx`
+if [ "$KPARTX" == "" ]; then
+ echo "kpartx not available, not checking SD card image"
+ exit
+fi
+
sudo losetup /dev/loop0 $1
sudo kpartx -a /dev/loop0
ls -l /dev/mapper
