]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: Replace deprecate udevadm command
authorKhem Raj <raj.khem@gmail.com>
Wed, 17 Jul 2024 19:06:44 +0000 (12:06 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jul 2024 16:21:01 +0000 (17:21 +0100)
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.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_256.bb

index 2e1f82dc8d12203faf4a440485a809aba92f58cc..a197b16583299faaf5a76194da76414362af9883 100644 (file)
@@ -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
 }