summaryrefslogtreecommitdiffstats
path: root/src/udev
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-12 14:11:46 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2022-12-12 21:45:28 +0100
commitf8717d2a723cf594617c3acb7e90992c881a3280 (patch)
tree1c2c851f6a6f090d5666ab9c20ac125120c51898 /src/udev
parentsysroot: Support x-systemd.makefs (diff)
downloadsystemd-f8717d2a723cf594617c3acb7e90992c881a3280.tar.xz
systemd-f8717d2a723cf594617c3acb7e90992c881a3280.zip
udevadm: emit deprecation notice in udevadm hwdb
This tool was "deprecated" back in 65eb4378c3e1de25383d8cd606909e64c71edc80, but only by removing documentation. This is somewhat surprising, but udevadm hwdb --update and systemd-hwdb update generate different databases. udevadm runs in compat mode and (as far as I have been able to figure out from a quick look), it omits filename information and does some other changes to the datastructures. The consuming code (udev) is the same in both cases, so this "compatibility mode" seems very strange. But I don't think it's worth trying to figure out why things were done this way. Let's just push people towards the new code. Inspired by https://github.com/systemd/systemd/issues/25698#issuecomment-1346298094.
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevadm-hwdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c
index a4468cf24f..2f5429fd89 100644
--- a/src/udev/udevadm-hwdb.c
+++ b/src/udev/udevadm-hwdb.c
@@ -87,6 +87,8 @@ int hwdb_main(int argc, char *argv[], void *userdata) {
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Either --update or --test must be used.");
+ log_notice("udevadm hwdb is deprecated. Use systemd-hwdb instead.");
+
if (arg_update) {
r = hwdb_update(arg_root, arg_hwdb_bin_dir, arg_strict, true);
if (r < 0)