summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2016-11-23 19:21:56 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2016-11-23 19:21:56 +0100
commit331d6a201b82a03c5343bb9c25280f0cd8b7d9fb (patch)
tree262dd1e1e1c4c629f0bd14f0c0fdf049bb6306a2 /src
parentfadc06bb8166b7ee494ed90b054f083ac4db4e11 (diff)
hwdb: use systemd-hwdb instead of obsolete udevadm hwdb (#4722)
Fixes: #4721
Diffstat (limited to 'src')
-rw-r--r--src/core/macros.systemd.in2
-rw-r--r--src/libsystemd/sd-hwdb/sd-hwdb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in
index 6e8a3b3e3d..8d7ce1c238 100644
--- a/src/core/macros.systemd.in
+++ b/src/core/macros.systemd.in
@@ -81,7 +81,7 @@ fi \
%systemd_user_postun_with_restart() %{nil}
%udev_hwdb_update() \
-udevadm hwdb --update >/dev/null 2>&1 || : \
+systemd-hwdb update >/dev/null 2>&1 || : \
%{nil}
%udev_rules_update() \
diff --git a/src/libsystemd/sd-hwdb/sd-hwdb.c b/src/libsystemd/sd-hwdb/sd-hwdb.c
index 488e101ea8..719e3505c1 100644
--- a/src/libsystemd/sd-hwdb/sd-hwdb.c
+++ b/src/libsystemd/sd-hwdb/sd-hwdb.c
@@ -321,7 +321,7 @@ _public_ int sd_hwdb_new(sd_hwdb **ret) {
}
if (!hwdb->f) {
- log_debug("hwdb.bin does not exist, please run udevadm hwdb --update");
+ log_debug("hwdb.bin does not exist, please run systemd-hwdb update");
return -ENOENT;
}