[PATCH]: Modifying init to create /dev/console and /dev/null
Terry Barnaby
terry1 at beam.ltd.uk
Wed Feb 28 11:55:40 UTC 2007
Hi,
I have decided to have a go and add support to init to create
a tmpfs file system on /dev and the two main device nodes /dev/console
and /dev/null if no /dev/console exists on the rootfs.
This feature is enabled with the FEATURE_INIT_UDEV option.
If this option is enabled and the file /dev/console does not exist then
init will mount a tmpfs file system on /dev and create the basic device
nodes /dev/console and /dev/null. This allows a system to boot and run
without any device nodes in the root file system. The system startup
scripts can create additional device nodes as needed or a full udev
implementation can then take over.
I am using this for my own system at the moment and thought I would
release the patch for interest. This is probably not the best way to
achieve the task in hand, but it does work well.
Cheers
Terry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: beam-init-udev-1.patch
Type: text/x-patch
Size: 1963 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070228/f73e4e37/attachment-0002.bin
More information about the busybox
mailing list