From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Fri, 13 Feb 2004 10:24:34 +0000 Subject: starting with an empty /dev Message-Id: <20040213102434.GA3991@wonderland.linux.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org IIRC initramfs already contains these devices, but anyway it's important to remember that if they are removed everything will break. Should we start thinking about how udev could be used in the real world? ----- Forwarded message from mat@nask.pl ----- From: mat@nask.pl To: Marco d'Itri Subject: Re: [udev] howto On Wed, 4 Feb 2004, Marco d'Itri wrote: > On Feb 04, mat@nask.pl wrote: > > >Can You please explain me how to do it? Or point me to some link where = it is > You don't. Currently udev is experimental and uses /udev to not mess > with your system. If you feel brave then make a symlink from /dev. Maybe you dont care but I have installed udev and it is working for me grea= t. But there were some problems. I have found that devices: /dev/null, /dev/console are needed befode /etc/init.d/udev starts (/etc/rcS.d/S37udev) so I twisted the init script not to remove those file during shutdown, and to create it during booting only if needed. I didnt know where should I send this thing (maybe this is only my problem)= but I use your debs so I am sending it to you. Bye -mat This is the patch: --- ./orig/udev 2004-02-03 22:23:02.000000000 +0100 +++ /etc/init.d/udev 2004-02-12 08:45:26.000000000 +0100 @@ -28,7 +28,19 @@ export DEVPATH=3D${j#/sys} class=3D${DEVPATH#/class/} class=3D${class%/*} -# echo -n " $DEVPATH($class)" + + special=3D${DEVPATH#/class/} + special=3D${special#$class/} + case "$special" in + null | console) + [ -c "/dev/$special" ] && continue + echo "/dev/$special included." + ;; + *) + #echo "$special -> udev." + ;; + esac + #echo -n " $DEVPATH($class)" { $UDEV $class || echo -n " failed: $DEVPATH"; } & done done @@ -62,7 +74,7 @@ [ -d /udev ] || mkdir /udev mount_sysfs export ACTION=ADd - echo -n "Creating initial udev device nodes..." + echo "Creating initial udev device nodes..." synthesize_events make_extra_nodes echo "done." > > -- > ciao, | > Marco | [4460 diQvhSSO5SlHk] > -mat ----- End forwarded message ----- --=20 ciao, | Marco | [4582 ig78KWqxlsXk.] ------------------------------------------------------- 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=3Dclick _______________________________________________ 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