From 60bdb3d6a18e2d136df3590f04df55a9a3a045f9 Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Thu, 18 Oct 2018 04:18:05 -0400 Subject: 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 Signed-off-by: Richard Purdie --- scripts/postinst-intercepts/update_udev_hwdb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/postinst-intercepts/update_udev_hwdb (limited to 'scripts') diff --git a/scripts/postinst-intercepts/update_udev_hwdb b/scripts/postinst-intercepts/update_udev_hwdb new file mode 100644 index 0000000000..b5cce0a09d --- /dev/null +++ b/scripts/postinst-intercepts/update_udev_hwdb @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D +chown root:root $D${sysconfdir}/udev/hwdb.bin -- cgit v1.2.3-54-g00ecf