git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@438
67a159dc-881f-0410-a524-
ba9dfbe2cb84
if [ -b "${x}" ]
then
good_msg "Attempting to mount media:- ${x}"
- mount -r -t iso9660,vfat ${x} ${NEW_ROOT}/mnt/cdrom > /dev/null 2>&1
+ mount -r -t iso9660 ${x} ${NEW_ROOT}/mnt/cdrom \
+ > /dev/null 2>&1
if [ "$?" = '0' ]
then
# Check for a LiveCD
umount ${NEW_ROOT}/mnt/cdrom
fi
fi
+ mount -r -t auto ${x} ${NEW_ROOT}/mnt/cdrom \
+ > /dev/null 2>&1
+ if [ "$?" = '0' ]
+ then
+ # Check for a LiveCD
+ if [ -e ${NEW_ROOT}/mnt/cdrom/${SUBDIR}/livecd ]
+ then
+ REAL_ROOT="${x}"
+ break
+ else
+ umount ${NEW_ROOT}/mnt/cdrom
+ fi
fi
done
if [ "${REAL_ROOT}" != '' ]