From 126ac60dfc31ca8566cb1b5ab5e6d7afd973e426 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Tue, 30 May 2006 13:26:58 +0000 Subject: [PATCH] Change cp to mknod for console/null. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@394 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- generic/linuxrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/linuxrc b/generic/linuxrc index d62b5e1..a674554 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -247,9 +247,9 @@ then chmod 755 ${NEW_ROOT}/$i echo "DEBUG: mkdir $i" done - cp /dev/null ${NEW_ROOT}/dev - cp /dev/console ${NEW_ROOT}/dev - echo "DEBUG: copying null/console" + [ ! -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 + echo "DEBUG: mknod null/console" # For SGI LiveCDs ... if [ "${LOOPTYPE}" = "sgimips" ] -- 2.26.2