summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd_237.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd_237.bb')
-rw-r--r--meta/recipes-core/systemd/systemd_237.bb10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-core/systemd/systemd_237.bb b/meta/recipes-core/systemd/systemd_237.bb
index 47d28902c8..e4846fe4f6 100644
--- a/meta/recipes-core/systemd/systemd_237.bb
+++ b/meta/recipes-core/systemd/systemd_237.bb
@@ -584,9 +584,13 @@ pkg_prerm_${PN} () {
584PACKAGE_WRITE_DEPS += "qemu-native" 584PACKAGE_WRITE_DEPS += "qemu-native"
585pkg_postinst_udev-hwdb () { 585pkg_postinst_udev-hwdb () {
586 if test -n "$D"; then 586 if test -n "$D"; then
587 ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \ 587 if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true','false', d)}; then
588 --root $D 588 ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \
589 chown root:root $D${sysconfdir}/udev/hwdb.bin 589 --root $D
590 chown root:root $D${sysconfdir}/udev/hwdb.bin
591 else
592 $INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}
593 fi
590 else 594 else
591 udevadm hwdb --update 595 udevadm hwdb --update
592 fi 596 fi