From 672cbb5742566dd2b47380d060de64e6a3102b3d Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 1 Oct 2023 19:45:21 +0200 Subject: [PATCH 1/2] Remove references to /run/udev/hwdb.d This directory never seemed to exist. The wording is very similar to that of the Rules Files section, so it is possible that the same text was copied and pasted by mistake. The HWDB never looked for files in /run. Having a non-volatile index of volatile files would probably not be useful. --- man/udev.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/man/udev.xml b/man/udev.xml index daeda741e..7bca8ec07 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -737,14 +737,13 @@ Hardware Database Files The hwdb files are read from the files located in the system hwdb directory /usr/lib/udev/hwdb.d, - the volatile runtime directory /run/udev/hwdb.d, the local administration directory /etc/udev/hwdb.d, and any other directory in the UDEV_HWDB_PATH search path variable. All hwdb 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 /etc have the highest priority, then files in - /run, /usr/lib and the ones in + /usr/lib, and the ones in UDEV_HWDB_PATH comes last. Files with higher priority take precedence over files with the same name and lower priority. This order can be used to override a system-supplied hwdb file with a From 89a68e7c7e2c6b06925a64f1e5943d446b6ee863 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 1 Oct 2023 19:47:23 +0200 Subject: [PATCH 2/2] Clarify the /etc/udev/hwdb.d file override with respect to UDEV_HWDB_PATH Overriding a file in /etc/udev/hwdb.d also hides the files with that name in UDEV_HWDB_PATH. --- man/udev.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man/udev.xml b/man/udev.xml index 7bca8ec07..fff7b5f8f 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -748,7 +748,8 @@ take precedence over files with the same name and lower priority. This order can be used to override a system-supplied hwdb file with a local file if needed; a symlink in /etc with the - same name as a hwdb file in /usr/lib, pointing to + same name as a hwdb file in /usr/lib or + UDEV_HWDB_PATH, pointing to /dev/null, disables the hwdb file entirely. hwdb files must have the extension .hwdb; other extensions are ignored.