On Fri, 2008-07-11 at 14:18 -0400, Stefan Monnier wrote:
> 
> Could be, indeed.  I do this kind of dance in /sbin/mount_root instead,
> which runs before rcS and the `hotplug' daemon properly creates the
> device nodes for me.

Hrm.

> But IIRC the hotplug daemon running at the time of
> mount_root is killed before running /sbin/init and rcS is probably run
> before it has been restarted.

Yeah, now that you mention rcS in the context of /sbin/init, I am
disliking doing this there.

> In any case I strongly suggest you hack /sbin/mount_root instead.

I see.  Really, I just wish rather than each of us re-inventing this
wheel, some official support for mounting a different device as root
would be committed to OpenWRT.

Would you care to post your /sbin/mount_root here?

> After all, its name makes it pretty clear that it's what it's for.

Indeed.

> OTOH I believe it is read/executed before jffs2 is mounted (part of its
> job is usually to mount jffs2 on /),

Indeed, this appears to be the case.

> so you have to modify it in the
> /rom (i.e. you have to build your own firmware).

Yeah.  I have already built and installed my own firmware, but having to
do that on each "debugging" pass is a real PITA, especially given you
trash your /etc/* configuration every time you do so.

It does seem like the most correct approach however.

b.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to