git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@48 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Brad House 21 years ago
parent d868426391
commit a3ee9dad5e

@ -35,8 +35,9 @@ modules_scan() {
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

@ -74,7 +74,7 @@ mkdir /newroot
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
@ -88,6 +88,10 @@ then
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/

Loading…
Cancel
Save