From a59b727179494c22497d8fa8776ba67f35c26795 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 13 Jul 2012 16:15:14 +0200 Subject: 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 --- src/udev/udev-rules.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/udev/udev-rules.c') 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"); -- cgit v1.2.3-54-g00ecf