summaryrefslogtreecommitdiffstats
path: root/scripts/postinst-intercepts/update_udev_hwdb
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2018-10-18 08:18:05 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-25 13:53:44 (GMT)
commit60bdb3d6a18e2d136df3590f04df55a9a3a045f9 (patch)
treedde0e2b9614812c5922d9c17a90a6e09a1066436 /scripts/postinst-intercepts/update_udev_hwdb
parent8e4c03744cfa8cc559682ebf7074643216dd2b9d (diff)
downloadpoky-60bdb3d6a18e2d136df3590f04df55a9a3a045f9.tar.gz
udev-hwdb: fix postinstall scripts failures when multilib enabled
When multilib is enabled and both udev-hwdb and ${MLPREFIX}udev-hwdb are installed to image, it fails to run one of their postinstall scripts that they both call ${base_bindir}/udevadm with same user mode qemu. Duplicate udevadm and add postinst-intercept update_udev_hwdb to fix the failures. (From OE-Core rev: d6b737a31a8842cdc770b05e28503c81a691d10d) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/postinst-intercepts/update_udev_hwdb')
-rw-r--r--scripts/postinst-intercepts/update_udev_hwdb6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/postinst-intercepts/update_udev_hwdb b/scripts/postinst-intercepts/update_udev_hwdb
new file mode 100644
index 0000000..b5cce0a
--- /dev/null
+++ b/scripts/postinst-intercepts/update_udev_hwdb
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3set -e
4
5PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D
6chown root:root $D${sysconfdir}/udev/hwdb.bin