Re: udev and /usr
On Mon, 07 Sep 2009, Steve Langasek wrote:
> On Mon, Sep 07, 2009 at 02:59:44PM -0300, Henrique de Moraes Holschuh wrote:
> > On Mon, 07 Sep 2009, Julien Cristau wrote:
> > > On Mon, Sep 7, 2009 at 05:15:19 +0200, Michael Biebl wrote:
> > > > From what I can see in /lib/udev/rules.d, the ids files are only used to setup
> > > > the (udev) environment variable ID_VENDOR_FROM_DATABASE
> > > > (75-net-description.rules, 75-tty-description.rules, 78-sound-card.rules).
> > > > There are no symlinks created in /dev based on that information.
> > Oh yes, there are. Either Unstable's udev or something else does this for
> > USB at the very least. Noticed it when playing with a Huawei E220 HSDPA USB
> > modem, the usb.ids information ended up in /dev/serial/by-id.
> The changes in question aren't even in unstable yet. So something else must
> be to blame.
Found them on /lib/udev. This is in udev 141.
There is /lib/udev/usb_id, and /lib/udev/60-persistent-serial (and a few
other scripts in there) that use usb_id to make symlinks.
A quick look at the usb_id source tells me aparently there is NOTHING WRONG
with it. It doesn't seem to use usb.ids, just whatever information the
kernel provides from the device (and device driver) knowledge about itself,
which is a lot more static than usb.ids, and protected by the kernel stable
So, I am _happy_ to correct myself and state that currently, usb.ids
information is NOT used anywhere by udev scripts I know of.
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot