+
+ if [ "${PERSISTENT}" = "nofiles" ]
+ then
+ # do not mount the device to find for image files
+ # just skip this
+ continue
+ fi
+
+ case "$(get_fstype ${devname})" in
+ vfat|ext2|ext3|ext4|jffs2)
+ mkdir -p "${cow_backing}"
+ if try_mount "${devname}" "${cow_backing}" "rw"
+ then
+ if [ -f "${pers_fpath}" ]
+ then
+ echo $(setup_loop "${pers_fpath}" "loop" "/sys/block/loop*")
+ return 0
+ else
+ umount ${cow_backing} > /dev/null 2>&1 || true
+ fi
+ fi
+ ;;
+ *)
+ ;;
+ esac