hwdb: actually search /run/udev/hwdb.d
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 9 Jun 2015 00:58:06 +0000 (10:58 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 9 Jun 2015 01:52:10 +0000 (11:52 +1000)
The documentation claims hwdb entries may be placed in the volatile
/run/udev/hwdb.d directory but nothing actually looked at it.

src/hwdb/hwdb.c
src/udev/udevadm-hwdb.c
units/systemd-hwdb-update.service.in

index 446de3a..62b76c9 100644 (file)
@@ -43,6 +43,7 @@ static const char *arg_root = "";
 
 static const char * const conf_file_dirs[] = {
         "/etc/udev/hwdb.d",
+        "/run/udev/hwdb.d",
         UDEVLIBEXECDIR "/hwdb.d",
         NULL
 };
index 00609e3..4c933de 100644 (file)
@@ -37,6 +37,7 @@
 
 static const char * const conf_file_dirs[] = {
         "/etc/udev/hwdb.d",
+        "/run/udev/hwdb.d",
         UDEVLIBEXECDIR "/hwdb.d",
         NULL
 };
index 7135cff..d13383d 100644 (file)
@@ -16,6 +16,7 @@ ConditionNeedsUpdate=/etc
 ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
 ConditionPathExists=|/etc/udev/hwdb.bin
 ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
+ConditionDirectoryNotEmpty=|/run/udev/hwdb.d/
 
 [Service]
 Type=oneshot