+ # not a block device, check if it's an iso file, for
+ # example an ISO when booting on an ONIE system
+ if echo "${FROMISO}" | grep -q "\.iso$"
+ then
+ if [ '0' -ne "${fs_type_auto}" ]; then
+ # Autodetect fs type if not overridden.
+ fs_type=$(get_fstype "${FROMISO}")
+ fi
+ if is_supported_fs ${fs_type}
+ then
+ mkdir /run/live/fromiso
+ mount -t "${fs_type}" -o 'ro' "${FROMISO}" '/run/live/fromiso'
+ if [ "$?" != 0 ]
+ then
+ echo "Warning: unable to mount ${FROMISO} (type ${fs_type})." >>/boot.log
+ fi
+ devname="/run/live/fromiso"
+ fi
+ else
+ echo "Warning: device for bootoption fromiso= ($FROMISO) not found.">>/boot.log
+ fi