Skip to contentSkip to conversation

systemd: Replace deprecate udevadm command

PATCH New Khem Raj 1 participant 1 message Jul 17, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 systemd: Replace deprecate udevadm command

In postinstall we run this script on target
these days systemd-hwdb is recommended

Fixes
...
Configuring udev-hwdb.
udevadm hwdb is deprecated. Use systemd-hwdb instead.

---
 meta/recipes-core/systemd/systemd_256.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_256.bb +1 -1
index 2e1f82dc8d1..a197b165832 100644
@@ -904,7 +904,7 @@ pkg_postinst:udev-hwdb () {
 	if test -n "$D"; then
 		$INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} rootlibexecdir="${rootlibexecdir}" PREFERRED_PROVIDER_udev="${PREFERRED_PROVIDER_udev}" base_bindir="${base_bindir}"
 	else
-		udevadm hwdb --update
+		systemd-hwdb update
 	fi
 }