This is ugly. I mean, really ugly. However, it is the only way to support all of the insane ways that people are trying to boot release media. I really wish we didn't have to support this junk, but a regression really shouldn't happen with our releases. Anyway, hopefully I can come up with a better solution to this in the future.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@438 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 19 years ago
parent 197155af44
commit 66e8e81e98

@ -72,7 +72,8 @@ findcdmount() {
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
@ -84,6 +85,18 @@ findcdmount() {
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}" != '' ]

Loading…
Cancel
Save