From 0de9fd29ffd9ba937a33ad3df66660e0f0cd80b4 Mon Sep 17 00:00:00 2001 From: Brad House Date: Sat, 14 Feb 2004 18:51:54 +0000 Subject: [PATCH] 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 --- generic/linuxrc | 1 + 1 file changed, 1 insertion(+) 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" -- 2.26.2