Change cp to mknod for sr0/loop0 for mips and also for tty1 for splash.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@395 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 19 years ago
parent 126ac60dfc
commit 10b1b9525a

@ -247,22 +247,22 @@ then
chmod 755 ${NEW_ROOT}/$i
echo "DEBUG: mkdir $i"
done
[ ! -e ${NEW_ROOT}/dev/null ] && mknod ${NEW_ROOT}/dev/null c 5 1
[ ! -e ${NEW_ROOT}/dev/console ] && mknod ${NEW_ROOT}/dev/console c 1 3
[ ! -e ${NEW_ROOT}/dev/null ] && mknod ${NEW_ROOT}/dev/null c 1 3
[ ! -e ${NEW_ROOT}/dev/console ] && mknod ${NEW_ROOT}/dev/console c 5 1
echo "DEBUG: mknod null/console"
# For SGI LiveCDs ...
if [ "${LOOPTYPE}" = "sgimips" ]
then
cp /dev/sr0 ${NEW_ROOT}/dev
cp /dev/loop0 ${NEW_ROOT}/dev
[ ! -e ${NEW_ROOT}/dev/sr0 ] && mknod ${NEW_ROOT}/dev/sr0 b 11 0
[ ! -e ${NEW_ROOT}/dev/loop0 ] && mknod ${NEW_ROOT}/dev/loop0 b 7 0
fi
# Required for gensplash to work. Not an issue with the initrd as this
# device isnt created there and is not needed.
if [ -e /dev/tty1 ]
then
cp /dev/tty1 ${NEW_ROOT}/dev
[ ! -e ${NEW_ROOT}/dev/tty1 ] && mknod ${NEW_ROOT}/dev/tty1 c 4 1
echo "DEBUG: copying tty1 for splash"
fi

Loading…
Cancel
Save