diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-01-03 12:31:06 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-02-18 10:29:33 +0100 |
commit | 116b91e8ccfee1d44fc2b140d831d688e3747902 (patch) | |
tree | 7079205fad5d62d86ee325d112bcaac9ca9eae18 /man/udev.xml | |
parent | 3dd84d4615a1bce46f5958718a677556c791a45b (diff) | |
download | systemd-116b91e8ccfee1d44fc2b140d831d688e3747902.tar.gz |
udev: use the usual set of load paths for udev rules
This adds /usr/local/lib/udev/rules.d to the search path on non-split-usr systems.
On split-usr systems, the paths with /usr/-prefixes are added too.
In the past, on split-usr systems, it made sense to only load rules from
/lib/udev/rules.d, because /usr could be mounted late. But we don't support running
without /usr since 80758717a63, so in practice it doesn't matter whether the
rules files are in /lib/udev/rules.d or /usr/lib/udev/rules.d. Distributions
that maintain the illusion of functional split-usr are welcome to simply not put any
files in /usr/lib/udev/rules.d/.
In practice this doesn't change much, but it makes udev more consistent with the
rest of the systemd suite.
Diffstat (limited to 'man/udev.xml')
-rw-r--r-- | man/udev.xml | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/man/udev.xml b/man/udev.xml index 74aab8e024..c82a3998f4 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -45,20 +45,18 @@ </refsect1> <refsect1><title>Rules Files</title> - <para>The udev rules are read from the files located in the - system rules directory <filename>/usr/lib/udev/rules.d</filename>, - the volatile runtime directory <filename>/run/udev/rules.d</filename> - and the local administration directory <filename>/etc/udev/rules.d</filename>. - All rules files are collectively sorted and processed in lexical order, - regardless of the directories in which they live. However, files with - identical filenames replace each other. Files in <filename>/etc</filename> - have the highest priority, files in <filename>/run</filename> take precedence - over files with the same name in <filename>/usr/lib</filename>. This can be - used to override a system-supplied rules file with a local file if needed; - a symlink in <filename>/etc</filename> with the same name as a rules file in - <filename>/usr/lib</filename>, pointing to <filename>/dev/null</filename>, - disables the rules file entirely. Rule files must have the extension - <filename>.rules</filename>; other extensions are ignored.</para> + <para>The udev rules are read from the files located in the system rules directories + <filename>/usr/lib/udev/rules.d</filename> and <filename>/usr/local/lib/udev/rules.d</filename>, the + volatile runtime directory <filename>/run/udev/rules.d</filename> and the local administration + directory <filename>/etc/udev/rules.d</filename>. All rules files are collectively sorted and + processed in lexical order, regardless of the directories in which they live. However, files with + identical filenames replace each other. Files in <filename>/etc</filename> have the highest priority, + files in <filename>/run</filename> take precedence over files with the same name under + <filename>/usr</filename>. This can be used to override a system-supplied rules file with a local + file if needed; a symlink in <filename>/etc</filename> with the same name as a rules file in + <filename>/usr/lib</filename>, pointing to <filename>/dev/null</filename>, disables the rules file + entirely. Rule files must have the extension <filename>.rules</filename>; other extensions are + ignored.</para> <para>Every line in the rules file contains at least one key-value pair. Except for empty lines or lines beginning with <literal>#</literal>, which are ignored. |