systemd: cleanup hwdb.service

Use systemd-hwdb instead of deprecated udevadm hwdb command
and fix ordering - it should be pulled in by sysinit.target,
not basic.target.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2020-09-29 09:51:48 +02:00
parent 6095b46cf7
commit 03b32a6f08

View File

@ -1,13 +1,14 @@
[Unit]
Description=Update hwdb.bin
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-tmpfiles-setup.service
Before=systemd-udevd.service
Before=sysinit.target shutdown.target systemd-udevd.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/bin/udevadm hwdb --update
ExecStart=systemd-hwdb update
[Install]
WantedBy=basic.target
WantedBy=sysinit.target