|
|
@ -45,21 +45,15 @@ findcdmount() {
|
|
|
|
mount -r ${x} /newroot/mnt/cdrom > /dev/null 2>&1
|
|
|
|
mount -r ${x} /newroot/mnt/cdrom > /dev/null 2>&1
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$?" = '0' ]
|
|
|
|
if [ "$?" = '0' ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
# Check for a LiveCD
|
|
|
|
|
|
|
|
if [ -e /newroot/mnt/cdrom/gentoo ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
REAL_ROOT="${x}"
|
|
|
|
REAL_ROOT="${x}"
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|
|
|
|
else
|
|
|
|
## FIXME: I need a proper identifier present on all LiveCDs to work across
|
|
|
|
umount /newroot/mnt/cdrom
|
|
|
|
## all architectures.
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# # Check for a LiveCD
|
|
|
|
|
|
|
|
# if [ -e /newroot/mnt/cdrom/.gentoo_LiveCD ]
|
|
|
|
|
|
|
|
# then
|
|
|
|
|
|
|
|
# REAL_ROOT="${x}"
|
|
|
|
|
|
|
|
# break
|
|
|
|
|
|
|
|
# else
|
|
|
|
|
|
|
|
# umount /newroot/mnt/cdrom
|
|
|
|
|
|
|
|
# fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
if [ "${REAL_ROOT}" != "" ]
|
|
|
|
if [ "${REAL_ROOT}" != "" ]
|
|
|
|