From: Brad House Date: Sat, 14 Feb 2004 18:51:54 +0000 (+0000) Subject: create /dev/console if for some reason /dev wasn't on the fs X-Git-Tag: v3.4.10.902~673 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0de9fd29ffd9ba937a33ad3df66660e0f0cd80b4;p=genkernel.git create /dev/console if for some reason /dev wasn't on the fs git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@79 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/generic/linuxrc b/generic/linuxrc index 49e6405..025053b 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -273,6 +273,7 @@ fi echo "STEP 5c: redirect console" console=/newroot/dev/console +[ ! -e "$console" ] && mknod $console c 5 1 exec < $console > $console 2>&1 || echo "CONSOLE REDIRECTION FAILED, /dev ON ROOT DOES NOT CONTAIN console !!!" echo "STEP 6: pivot_root and exec/chroot real init"