WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: udev rules location and priority?  (Read 12851 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
udev rules location and priority?
« 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?

« Last Edit: April 04, 2012, 08:38:40 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11047
Re: udev rules location and priority?
« Reply #1 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
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: udev rules location and priority?
« Reply #2 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11047
Re: udev rules location and priority?
« Reply #3 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.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: udev rules location and priority?
« Reply #4 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 :)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: udev rules location and priority?
« Reply #5 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.