Re: HOWTO use udev to manage /dev

Frédéric L. W. Meunier
2004-02-20T02:28:52Z

On Thu, 19 Feb 2004, Greg KH wrote:

> On Thu, Feb 19, 2004 at 09:51:52PM -0300, Frédéric L. W. Meunier wrote:
> > On Thu, 19 Feb 2004, Greg KH wrote:
> >
> > > How about changing the #!/bin/bash to #!/bin/sash in the
> > > first line for the start_udev script?
> >
> > I didn't have it, but compiled and changed. Yes, it works.
>
> > OK, I'll later boot with it and see if it works. If it does,
> > I'll run strace with the other.
>
> How about using sash? That is statically linked.

As I reported, it works with it.

> > I forgot to run it, but noticed there was a /dev/null, but
> > a text file (0644). And I didn't create it anywhere.

> That sounds like some program is trying to write to it.

I bet it was fsck. It was the last to run before sulogin.

> Hm, there is a patch in the Red Hat version of udev that basically makes
> udev do the start_udev logic, in the .c file because they do not have a
> shell in their initrd. If you can dig it out of there, that might be a
> solution for you to use.

Sounds good to get rid of the script. I'll see.

> Other than that, how about running strace on start_udev when your rc.S
> script calls it? That might help out.

I did it, and guess what, it worked.

-[ ! -e /dev/.devfsd -a -d /sys/block ] && /etc/rc.d/start_udev
+[ ! -e /dev/.devfsd -a -d /sys/block ] && strace -o /tmp/udev.txt /etc/rc.d/start_udev

--