summaryrefslogtreecommitdiff
path: root/src/udev/udev-rules.c
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-07-13 16:15:14 +0200
committerRichard Yao <ryao@cs.stonybrook.edu>2012-11-20 17:18:07 -0500
commita59b727179494c22497d8fa8776ba67f35c26795 (patch)
tree5041f6e9dbdc94bbc85fa570bbe96ae2fb1c883c /src/udev/udev-rules.c
parentf74b77335b994d5dcecbc0d5d0d4bbfc8364c1b5 (diff)
udev: add /lib/udev/rules.d to rules directories
This adds /lib if split-usr is enabled to the directories where udev searches for rules.d. This is needed if split-usr is enabled because some software still installs rules in /lib/udev/rules.d. Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r--src/udev/udev-rules.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index a85b41185f..38d5215c55 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -1603,6 +1603,9 @@ struct udev_rules *udev_rules_new(struct udev *udev, int resolve_names)
rules->dirs = strv_new("/etc/udev/rules.d",
"/run/udev/rules.d",
UDEVLIBEXECDIR "/rules.d",
+#ifdef HAVE_SPLIT_USR
+ "/lib/udev/rules.d",
+#endif
NULL);
if (!rules->dirs) {
log_error("failed to build config directory array");