summaryrefslogtreecommitdiff
path: root/units/systemd-udev-hwdb-update.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'units/systemd-udev-hwdb-update.service.in')
-rw-r--r--units/systemd-udev-hwdb-update.service.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/units/systemd-udev-hwdb-update.service.in b/units/systemd-udev-hwdb-update.service.in
index cdbcd837cd..5b1f75d250 100644
--- a/units/systemd-udev-hwdb-update.service.in
+++ b/units/systemd-udev-hwdb-update.service.in
@@ -13,6 +13,9 @@ Conflicts=shutdown.target
After=systemd-remount-fs.service
Before=sysinit.target shutdown.target systemd-update-done.service
ConditionNeedsUpdate=/etc
+ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
+ConditionPathExists=|/etc/udev/hwdb.bin
+ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
[Service]
Type=oneshot