On Fri, Jul 08, 2005 at 02:39:51AM +0900, Georgi Georgiev wrote: > maillog: 06/07/2005-15:46:51(-0700): Greg KH types > > Ok, now that devfs is removed from the 2.6 kernel tree[1], I think it's > > time to start to revisit some of the /dev naming rules that we currently > > are living with[2]. > > > > To start with, the 061 version of udev offers a big memory savings if > > you use the "default" kernel name of a device[3]. If you do that, it does > > not create a file in its database in /dev/.udevdb/ > > Ah, that will break /etc/init.d/halt.sh > > Particularly the stuff around here: > > ebegin "Saving device nodes" > ... > cd /dev > # Find all devices > find . -xdev -type b -or -type c -or -type l | cut -d/ -f2- > \ > "${devices_real}" > # Figure out what udev created > eval $(grep '^[[:space:]]*udev_db=' /etc/udev/udev.conf) > if [[ -d ${udev_db} ]]; then > # New udev_db is clear text ... > udevinfo=$(cat "${udev_db}"/*) > else > # Old one is not ... > udevinfo=$(udevinfo -d) > fi > # This basically strips 'S:' and 'N:' from the db output, and then > # print all the nodes/symlinks udev created ... > ... > > The script will be unable to figure out what device is being handled by > udev, and what is not.
Ugh, why do people care about tarballs of device nodes... :) Anyway, yes, this will break that, but only in the way that it will save more device nodes than it needed to, right? Which isn't really a bad thing, as stuff will still work properly. But it's not the nicest. Also, mind if I move this stuff out into the udev package itself? That will let me keep it up to date with any udev changes (I wasn't even aware that this checked for different versions of udev database info) much easier. thanks, greg k-h -- gentoo-dev@gentoo.org mailing list