Modifying init to create /dev/console ?

Robin Farine robin.farine at terminus.org
Sun Mar 11 22:46:49 UTC 2007


On Sunday March 11 2007 23:06, Robert Schwebel wrote:

> 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.

The kernel displays this message just before it tries to exec an 
init executable.

> 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?

By creating a /dev/console device node in the NFS exported 
filesystem ?

Robin



More information about the busybox mailing list