hwdb: actually search /run/udev/hwdb.d
The documentation claims hwdb entries may be placed in the volatile /run/udev/hwdb.d directory but nothing actually looked at it.
This commit is contained in:
parent
02776da6ec
commit
03dfe7b749
|
@ -43,6 +43,7 @@ static const char *arg_root = "";
|
||||||
|
|
||||||
static const char * const conf_file_dirs[] = {
|
static const char * const conf_file_dirs[] = {
|
||||||
"/etc/udev/hwdb.d",
|
"/etc/udev/hwdb.d",
|
||||||
|
"/run/udev/hwdb.d",
|
||||||
UDEVLIBEXECDIR "/hwdb.d",
|
UDEVLIBEXECDIR "/hwdb.d",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
static const char * const conf_file_dirs[] = {
|
static const char * const conf_file_dirs[] = {
|
||||||
"/etc/udev/hwdb.d",
|
"/etc/udev/hwdb.d",
|
||||||
|
"/run/udev/hwdb.d",
|
||||||
UDEVLIBEXECDIR "/hwdb.d",
|
UDEVLIBEXECDIR "/hwdb.d",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,6 +16,7 @@ ConditionNeedsUpdate=/etc
|
||||||
ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
|
ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
|
||||||
ConditionPathExists=|/etc/udev/hwdb.bin
|
ConditionPathExists=|/etc/udev/hwdb.bin
|
||||||
ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
|
ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
|
||||||
|
ConditionDirectoryNotEmpty=|/run/udev/hwdb.d/
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
Loading…
Reference in a new issue