diff --git a/customscripts/pi_create_image_from_img b/customscripts/pi_create_image_from_img index 212f1ac..2bd489d 100644 --- a/customscripts/pi_create_image_from_img +++ b/customscripts/pi_create_image_from_img @@ -29,11 +29,15 @@ sleepfive () { } echo -e "\nsettings:\n\tmountpoint: $mountpoint\n\timgpath: $imgpath\n\timgdir: $imgdir\n\txzpath: $xzpath\n\trenamepath: $renamepath\n" + +echo "changing directory to $imgdir" cd "$imgdir" echo "mapping $imgpath" sudo kpartx -av "$imgpath" +sleepfive + echo "mounting $imgpath" sudo mount "$device" "$mountpoint"