Menu

#36 udev rules belong to /usr/lib/udev/rules.d

1.2.X
closed
nobody
None
1
2016-02-11
2012-12-07
No

System udev rules should go in /usr/lib/udev/rules.d and not in /etc
The directory /etc/udev/rules.d is for the system administrator to customize.

I quote here the manpage of udev

Rules files
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. All rules files are collectively sorted and
processed in lexical order, regardless of the directories in which they
live. However, files with identical file names replace each other.
Files in /etc have the highest priority, files in /run take precedence
over files with the same name in /lib. This can be used to override a
system-supplied rules file with a local file if needed; a symlink in
/etc with the same name as a rules file in /lib, pointing to /dev/null,
disables the rules file entirely

Discussion

  • Jasem Mutlaq

    Jasem Mutlaq - 2012-12-08

    Ok, under Ubuntu they are under /lib/udev, and not /usr/lib/udev, is there really any standard for this or it depends on the distribution?

     
  • Sergio Pascual

    Sergio Pascual - 2012-12-08

    In Fedora /lib is a link to /usr/lib, so using /lib/udev is valid for Fedora and Ubuntu

     
  • Jasem Mutlaq

    Jasem Mutlaq - 2012-12-09

    Ok, changed the dir to /lib/udev/rules.d now. Thanks for submitting the report.

     
  • Jasem Mutlaq

    Jasem Mutlaq - 2012-12-09
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB