echo "Reformat USB boot partition"
mkfs.vfat -F 16 -n kubuntu8 ${USB_DEV}1
+if [ ! -d ${MOUNT_POINT}/kubuntu8 ] ; then
+ mkdir -p ${MOUNT_POINT}/kubuntu8
+ created="yes"
+fi
mount ${USB_DEV}1 ${MOUNT_POINT}/kubuntu8
if [ $? -ne 0 ] ; then
echo "Mount of USB boot partition failed."
sync
sync
umount ${MOUNT_POINT}/kubuntu8
+if [ "x$created" = "xyes" ] ; then
+ rmdir ${MOUNT_POINT}/kubuntu8
+fi