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
cleanup-cruft
Brad House 21 years ago
parent bf4c80a033
commit 0de9fd29ff

@ -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"

Loading…
Cancel
Save