Modifying init to create /dev/console ?
Mike Frysinger
vapier at gentoo.org
Tue Feb 27 18:28:05 UTC 2007
On Tuesday 27 February 2007, Terry Barnaby wrote:
> However, init and other programs obviously require /dev/console (and
> other /dev entries).
they dont require /dev/console
> I was wondering about adding an option to init where it would create a
> tmpfs file system, mount it on /dev and create a /dev/console node if no
> /dev/console was found. I guess it could do a bit more and function as
> udev as well.
it wouldnt work ... the kernel opens up /dev/console before executing init, so
even if /sbin/init created the device node, it wouldnt matter
also, this is what init scripts are for ... such / policy handling does not
belong hardcoded in the C code
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070227/d22d4891/attachment-0002.pgp
More information about the busybox
mailing list