Modifying init to create /dev/console ?
Robert Schwebel
robert at schwebel.de
Sun Mar 11 15:06:14 PDT 2007
On Wed, Feb 28, 2007 at 08:26:05PM -0500, Mike Frysinger wrote:
> you should add redirects so that /sbin/init opens /dev/console for its
> stdin and stdout ...
I tried it like this:
----------8<----------
#!/bin/sh
mount -t tmpfs none /dev -o mode=755
mknod /dev/console c 5 1
chmod 600 /dev/console
mknod /dev/null c 1 3
chmod 666 /dev/null
exec /bin/busybox init $@ 1> /dev/console 2> /dev/console < /dev/console
----------8<----------
but still get:
VFS: Mounted root (nfs filesystem).
Freeing init memory: 88K
Warning: unable to open an initial console.
init started: BusyBox v1.1.3 (2007.03.11-10:31+0000) multi-call binary
Does anybody have an idea how to get rid of the warning?
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
More information about the busybox
mailing list