On Sun, May 13, 2012 at 12:16:37PM +0200, Laurent Bercot wrote

>  Just have a single rule for /dev/sd* and have a
>   if [ "$DEV" = "/dev/sda" ] ; exit 0
> line at the beginning of your rule script. (Maybe $DEV isn't the right
> variable name, I don't remember.)

  It's $MDEV, according to the documentation.  It also says...
> The config file parsing stops at the first matching line.  If no
> line is matched, then the default of 0:0 660 is used.

  As I read it, "exit 0" won't create the necessary nodes, and parsing
stops, because a match has been found.

>  Totally distro-dependent. As a rule of thumb, I like to be able to
> boot even if /var is borked, so I use /etc (on a read-only filesystem)
> for boot-time basic scripts and /var/lib for run-time advanced stuff.

  I hadn't thought of that.  /etc is more likely to be present at
bootup.  I had originally intended this for stuff done by the user well
after booting.  But some people may ant it available earlier.  So
/etc/mdev.d seems to be the most logical choice.

-- 
Walter Dnes <[email protected]>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to