From: Brad House Date: Sun, 11 Jan 2004 21:50:50 +0000 (+0000) Subject: fix for loop device mounting X-Git-Tag: v3.4.10.902~701 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=57b565e3c0058788c37d68a47a569d37631c0f94;p=genkernel.git fix for loop device mounting git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@51 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/generic/linuxrc b/generic/linuxrc index 0760181..a3c3923 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -78,6 +78,9 @@ 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}" = "" ] @@ -172,7 +175,7 @@ then if [ "${LOOP}" != "" ] then echo "STEP 5a1: mounting loop filesystem" - mount -o loop /newroot/mnt/cdrom/${LOOP} /newroot/mnt/loop + mount -t ext3 -o loop,ro /newroot/mnt/cdrom/${LOOP} /newroot/mnt/loop if [ "$?" != 0 ] then echo "FAILED TO MOUNT LOOP FILESYSTEM, barfing out to shell" @@ -190,6 +193,9 @@ then mkdir initrd proc tmp sys chmod 1777 tmp (cd /newroot/${FS_LOCATION}; cp -a ${ROOT_TREES} /newroot) + + # Unmount the -o bind /dev and kill devfsd + umount /dev kill_devfsd else echo "STEP 5b: setting up stuff for pivot_root" diff --git a/genkernel b/genkernel index e50ebdf..ddd9f83 100755 --- a/genkernel +++ b/genkernel @@ -1,7 +1,7 @@ #!/bin/bash # Genkernel v3 -GK_V="3.0.1_beta4-2" +GK_V="3.0.1_beta4-3" TEMP="/tmp" small_die() {