From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 19 Feb 2004 23:56:02 +0000 Subject: Re: HOWTO use udev to manage /dev Message-Id: <20040219235602.GI15848@kroah.com> List-Id: References: <20040219185932.GA10527@kroah.com> <20040219191636.GC10527@kroah.com> <20040219230749.GA15848@kroah.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: =?iso-8859-1?B?RnLpZOlyaWMgTC4gVy4=?= Meunier <1@pervalidus.net> Cc: linux-kernel@vger.kernel.org, linux-hotplug-devel@lists.sourceforge.net On Thu, Feb 19, 2004 at 08:46:42PM -0300, Fr=E9d=E9ric L. W. Meunier wrote: > On Thu, 19 Feb 2004, Greg KH wrote: >=20 > > On Thu, Feb 19, 2004 at 07:22:30PM -0300, Fr=E9d=E9ric L. W. Meunier wr= ote: > > > On Thu, 19 Feb 2004, Greg KH wrote: > > > > > > > - modify the rc.sysinit script to call the start_udev script as on= e of > > > > the first things that it does, but after /proc and /sys are moun= ted. > > > > I did this with the latest Fedora startup scripts with the patch= at > > > > the end of this file. > > > > > > > > - make sure the /etc/udev/udev.conf file lists the udev_root as /d= ev. > > > > It should contain the following line in order to work properly. > > > > udev_root=3D"/dev/" > > > > > > > > - reboot into a 2.6 kernel and watch udev create all of the initial > > > > device nodes in /dev > > > > > > > > > > > > If anyone has any problems with this, please let me, and the > > > > linux-hotplug-devel@lists.sourceforge.net mailing list know. > > > > > > Unless I'm missing something, it doesn't seem to work if you > > > don't have /dev/null before it gets mounted. > > > > Did you build udev using glibc or klibc? I used klibc and it worked > > just fine, as udev and udevd does not need /dev/null to work, unlike > > programs built against glibc. >=20 > I used your instructions, so klibc. >=20 > # ldd /sbin/udev* >=20 > /sbin/udev: > not a dynamic executable > /sbin/udevd: > not a dynamic executable > /sbin/udevinfo: > not a dynamic executable > /sbin/udevsend: > not a dynamic executable > /sbin/udevtest: > not a dynamic executable >=20 > It doesn't complain if I mount in /udev after I boot with > devfs, probably because it can find /dev/null etc. But I want > to boot with devfs=3Dnomount and use it in /dev. I agree, that would be the best. So if you take out the line about starting udevd, does it work for you? How about changing the #!/bin/bash to #!/bin/sash in the first line for the start_udev script? What distro is this? Can you run strace on the start_udev script after boot to see who is needing access to /dev/null? Oh, and if you create the /dev/null node as the first thing in the start_udev script does that work? thanks, greg k-h ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id438&op=CCk _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel