chiark / gitweb /
udev hwdb: Support shipping pre-compiled database in system images
[elogind.git] / units / systemd-udev-hwdb-update.service.in
index 4e7b845ea47a41b631b04cb928e0f25fd0bce992..5b1f75d250581fed99ac8bf29c2dcb46ebd112ed 100644 (file)
@@ -10,11 +10,12 @@ Description=Rebuild Hardware Database
 Documentation=man:udev(7) man:systemd-udevd.service(8)
 DefaultDependencies=no
 Conflicts=shutdown.target
-After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
+After=systemd-remount-fs.service
 Before=sysinit.target shutdown.target systemd-update-done.service
-RefuseManualStart=yes
-RefuseManualStop=yes
 ConditionNeedsUpdate=/etc
+ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
+ConditionPathExists=|/etc/udev/hwdb.bin
+ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
 
 [Service]
 Type=oneshot