From 10b1b9525a9de67c0095016cbdb3f72a936c7c38 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Wed, 31 May 2006 13:26:51 +0000 Subject: [PATCH] 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 --- generic/linuxrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generic/linuxrc b/generic/linuxrc index a674554..f1db571 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -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 -- 2.26.2