[PATCH]: Modifying init to create /dev/console and /dev/null

Wim Vinckier wimpunk at gmail.com
Wed Feb 28 16:13:13 UTC 2007


Nice, looks like the patch I just needed. :-)

On 2/28/07, Terry Barnaby <terry1 at beam.ltd.uk> wrote:
> 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
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
>


-- 
You have been on the computer to long when you start tilting your head
sideways to smile :-)



More information about the busybox mailing list