Fix #77259.
authorTim Yamin <plasmaroo@gentoo.org>
Mon, 31 Jan 2005 19:45:42 +0000 (19:45 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Mon, 31 Jan 2005 19:45:42 +0000 (19:45 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@167 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/linuxrc

index 39d0ca9b39fb3d42e3a447a8a1870f9f6648ee2c..0ea798c92a8fdd8d19c9f378fc97c8369ae5555e 100644 (file)
@@ -417,10 +417,10 @@ then
                mount -t ext2 -o ro /newroot/dev/loop0 /newroot/mnt/livecd
                FS_LOCATION='mnt/livecd'
                umount /dev
-       elif [ "${LOOPTYPE}" = 'zisofs' ]
+       elif /tmp/.initrd/bin/[ "${LOOPTYPE}" = 'zisofs' ]
        then
                FS_LOCATION="mnt/cdrom/${LOOPEXT}${LOOP}"
-       elif [ "${LOOPTYPE}" = 'noloop' ]
+       elif /tmp/.initrd/bin/[ "${LOOPTYPE}" = 'noloop' ]
        then
                FS_LOCATION='mnt/cdrom'
        fi
@@ -437,7 +437,7 @@ else
        mkdir -p /newroot/tmp/.initrd
 fi
 
-[ ! -e /newroot/dev/console ] && mknod /newroot/dev/console c 5 1
+/tmp/.initrd/bin/[ ! -e /newroot/dev/console ] && mknod /newroot/dev/console c 5 1
 echo -ne "${GOOD}>>${NORMAL}${BOLD} Booting"
 
 cd /newroot
@@ -445,22 +445,22 @@ mkdir /newroot/proc /newroot/sys 2>/dev/null
 pivot_root . tmp/.initrd
 echo -n '.'
 
-if [ "${USE_DEVFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ]
+if /tmp/.initrd/bin/[ "${USE_DEVFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ]
 then
        umount /tmp/.initrd/proc || echo '*: Failed to unmount the initrd /proc!'
        mount -n --move /tmp/.initrd/dev dev || echo '*: Failed to move over the /dev tree!'
        rm -rf /tmp/.initrd/dev || echo '*: Failed to remove the initrd /dev!'
-elif [ "${USE_UDEV_NORMAL}" -eq '1' ]
+elif /tmp/.initrd/bin/[ "${USE_UDEV_NORMAL}" -eq '1' ]
 then
-       [ -e /tmp/.initrd/dev/fd ] && rm /tmp/.initrd/dev/fd
-       [ -e /tmp/.initrd/dev/stdin ] && rm /tmp/.initrd/dev/stdin
-       [ -e /tmp/.initrd/dev/stdout ] && rm /tmp/.initrd/dev/stdout
-       [ -e /tmp/.initrd/dev/stderr ] && rm /tmp/.initrd/dev/stderr
-       [ -e /tmp/.initrd/dev/core ] && rm /tmp/.initrd/dev/core 
+       /tmp/.initrd/bin/[ -e /tmp/.initrd/dev/fd ] && rm /tmp/.initrd/dev/fd
+       /tmp/.initrd/bin/[ -e /tmp/.initrd/dev/stdin ] && rm /tmp/.initrd/dev/stdin
+       /tmp/.initrd/bin/[ -e /tmp/.initrd/dev/stdout ] && rm /tmp/.initrd/dev/stdout
+       /tmp/.initrd/bin/[ -e /tmp/.initrd/dev/stderr ] && rm /tmp/.initrd/dev/stderr
+       /tmp/.initrd/bin/[ -e /tmp/.initrd/dev/core ] && rm /tmp/.initrd/dev/core 
        umount /tmp/.initrd/dev || echo '*: Failed to unmount the initrd /dev!'
        umount /tmp/.initrd/proc || echo '*: Failed to unmount the initrd /proc!'
        umount /tmp/.initrd/sys || echo '*: Failed to unmount the initrd /sys!'
-elif [ "${CDROOT}" -eq '1' ]
+elif /tmp/.initrd/bin/[ "${CDROOT}" -eq '1' ]
 then
        umount /tmp/.initrd/proc || echo "*: Failed to unmount the initrd /proc!"
        umount /dev 2>/dev/null