From 91418155ae9034f466d436c314cd136309bc557d Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 14 Mar 2012 14:52:45 +0100 Subject: rules sort order: /lib, /run, /etc After long consideration we came to the conclusion that user configuration in /etc should always override the (generally computer generated) configuration in /run. User configuration should always be what matters over anything else. Hence rearrange the search orders accordingly. In general this should change very little as overriding like this is seldomn done so far, and the order between /etc and /usr stays the same. --- src/udev.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/udev.xml') diff --git a/src/udev.xml b/src/udev.xml index 4de434ee51..8eb583a823 100644 --- a/src/udev.xml +++ b/src/udev.xml @@ -72,15 +72,15 @@ Rules files The udev rules are read from the files located in the system rules directory /usr/lib/udev/rules.d, - the local administration directory /etc/udev/rules.d - and the volatile runtime directory /run/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 /run - have the highest priority, files in /etc take precedence + 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 overwrite a system rules file if needed; a symlink in - /etc with the same name as a rules file in + 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. @@ -343,7 +343,7 @@ - The permissions for the device node. Every specified value overwrites + The permissions for the device node. Every specified value overrides the compiled-in default value. -- cgit v1.2.3-54-g00ecf