From 8a8c61c13d99552e5cb993a624fa84c68c008c06 Mon Sep 17 00:00:00 2001 From: Brad House Date: Sat, 17 Jan 2004 22:15:11 +0000 Subject: [PATCH] must bind-mount dev for loop devices git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@54 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- generic/linuxrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/generic/linuxrc b/generic/linuxrc index ad5986b..edd0698 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -81,9 +81,7 @@ then [ ! -e /newroot/dev/.devfsd ] && mount -t devfs devfs /newroot/dev devfsd /newroot/dev sleep 1 - # Bind our mounted dev to /dev otherwise we may not be able to mount - # our loop device later on -# mount -o bind /newroot/dev /dev + findcdmount /newroot/dev/cdroms/* # not in /dev/cdroms try /dev/ide/cd if [ "${REAL_ROOT}" = "" ] @@ -205,6 +203,10 @@ then if [ "${LOOPTYPE}" = "normal" ] then check_loop + + # bind-mount /dev/ so that loop devices can be found + mount -o bind /newroot/dev /dev + echo "STEP 5a1: mounting loop filesystem" mount -t ext2 -o loop,ro /newroot/mnt/cdrom/${LOOP} /newroot/mnt/loop if [ "$?" != "0" ] @@ -213,6 +215,7 @@ then /bin/ash fi FS_LOCATION="mnt/loop" + umount /dev elif [ "${LOOPTYPE}" = "zisofs" ] then check_loop -- 2.26.2