From 5b30aaf9b5725c0933fc6a49c4b801e8e0d1aeed Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 5 Apr 2018 16:32:47 -0500 Subject: Fix post install so it only runs when package is installed. --- recipes-kernel/vizzini/vizzini.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/recipes-kernel/vizzini/vizzini.inc b/recipes-kernel/vizzini/vizzini.inc index eb9bc54..fa7b478 100644 --- a/recipes-kernel/vizzini/vizzini.inc +++ b/recipes-kernel/vizzini/vizzini.inc @@ -5,7 +5,7 @@ PRIORITY = "optional" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" -INC_PR = "r1" +INC_PR = "r2" SRC_URI = " \ file://vizzini.init \ @@ -48,6 +48,12 @@ do_install() { } pkg_postinst_${PN} () { - /sbin/depmod -a + if [ -z "$D" ]; then + depmod -a ${MLINUX_KERNEL_VERSION}${MLINUX_KERNEL_EXTRA_VERSION} + else + # image.bbclass will call depmodwrapper after everything is installed, + # no need to do it here as well + : + fi } -- cgit v1.2.3