git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@48
67a159dc-881f-0410-a524-
ba9dfbe2cb84
findcdmount() {
if [ "$#" -gt "1" ]
then
- for x in "$*"
+ for x in $*
do
+ echo -e "${HILITE}---- Attempting to mount CD -- ${x}${NORMAL}"
mount -t iso9660 -r ${x} /newroot/mnt/cdrom > /dev/null 2>&1
if [ "$?" = "0" ]
then
if [ "${CDROOT}" -eq "1" ]
then
mount -t tmpfs tmpfs /newroot
- mkdir /newroot/dev /newroot/mnt /newroot/mnt/cdrom /newrot/mnt/loop /newroot/tmp/.initrd /newroot/mnt/gentoo
+ mkdir /newroot/dev /newroot/mnt /newroot/mnt/cdrom /newroot/mnt/loop /newroot/tmp/.initrd /newroot/mnt/gentoo
[ ! -e /newroot/dev/.devfsd ] && mount -t devfs devfs /newroot/dev
devfsd /newroot/dev
sleep 1
if [ "${REAL_ROOT}" = "" ]
then
+ echo "Dropping to shell so you can fix your shit"
+ exec /bin/ash
+
+ # Undo stuff
kill_devfsd
sleep 1
umount /newroot/dev/