Change cp to mknod for console/null.
authorChris Gianelloni <wolf31o2@gentoo.org>
Tue, 30 May 2006 13:26:58 +0000 (13:26 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Tue, 30 May 2006 13:26:58 +0000 (13:26 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@394 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/linuxrc

index d62b5e192dfb3dc8ab7f5c2e1d1667e55dc69220..a674554de37fe4e001400070c6a0c0b3847c88d4 100644 (file)
@@ -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" ]