Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: bmarkus on April 04, 2012, 08:35:25 AM

Title: udev rules location and priority?
Post by: bmarkus on April 04, 2012, 08:35:25 AM
udev rule files can be found in the following directories after installing misc. extensions:

/usr/local/etc/udev/rules.d
/etc/udev/rules.d
/lib/udev/rules.d

It looks a bit messy. Are these locations working? If yes, what is their priority?

Also I do not find udev.conf Isn't it missing?

Title: Re: udev rules location and priority?
Post by: curaga on April 04, 2012, 08:58:51 AM
We don't have a need for udev.conf, the defaults are ok.

For priority see http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html
Title: Re: udev rules location and priority?
Post by: bmarkus on April 04, 2012, 09:04:47 AM
It says:

Quote
The udev rules are read from the files located in the system rules directory /usr/lib/udev/rules.d, the volatile runtime directory /run/udev/rules.d and the local administration directory /etc/udev/rules.d.

According to above /usr/local/etc/udev/rules.d and /lib/udev/rules.d are not used by udev.
Title: Re: udev rules location and priority?
Post by: curaga on April 04, 2012, 09:16:03 AM
/lib is used AFAIK, perhaps the docs are out of date (or maybe newer than our udev). /usr/local is not, AFAIK.
Title: Re: udev rules location and priority?
Post by: bmarkus on April 04, 2012, 09:32:31 AM
/lib is used AFAIK, perhaps the docs are out of date (or maybe newer than our udev). /usr/local is not, AFAIK.

I'm investigating why thunar-volman doesn't work (it is based on udisks) and came across the install locations. Still it requires tests what is going on :)
Title: Re: udev rules location and priority?
Post by: Yleisajattelija on April 17, 2012, 02:57:26 AM
I think udev.conf should be. It is part of the "kernel- udev-rules" dynamic maintenance system. TC too should have some sort of state-machine to maintain udev rules consistency. And the base point of that state-machine is probably "udev.conf". It is NOT a proper attitude to leave everything as default, udev rules is must live dynamically.

When user makes modifications to this "udev.conf" file, it is safe to overrule these modifications by system if needed. For example, LinuxUnifiedDriver try to install 98 and 99 level of sane rules which is not healthy.

I suspect, that these Xorg/sane installation mess is the result for that kernel-udev-rules ignoring.