[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Modifying init to create /dev/console ?
From:       Denis Vlasenko <vda.linux () googlemail ! com>
Date:       2007-02-28 22:43:40
Message-ID: 200702282343.40891.vda.linux () googlemail ! com
[Download RAW message or body]

On Wednesday 28 February 2007 11:37, Terry Barnaby wrote:
> Luciano Miguel Ferreira Rocha wrote:
> I have had a quick look at the busybox init, and it appears that if 
> there is not a /dev/console or /dev/null then it will not run any of the 
> scripts .... So /dev/console or /dev/null is required for init to run.
> 
> I am still thinking it would be best to add the ability for init to 
> create a basic /dev with /dev/console etc if these do not exist. This
> still appears a cleaner way of doing things to me at the moment ...
> This could be done internally or by calling an external script from
> init although it would be nice if /dev/console existed as early on as 
> possible to at-least get debug info from programs running.

kernel boored with: init=/somewhere/fix_dev.sh

fix_dev.sh:

#!/bin/sh
mknod ... /dev/....
exec /sbin/init "$@"

No hacking in init! :)

Do you see any problems with this approach?
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic