From 7b7f3cff44bec1cf0dcc920fcc5f04095ab86030 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Tue, 28 Aug 2012 08:41:44 +0200 Subject: kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst * without this, kernel upgrades where KERNEL_VERSION is changed e.g. 3.4.2 -> 3.4.3 generate .dep for running 3.4.2 and after reboot user ends up without any module loaded to make it worse after reboot nothing is upgraded to trigger another kernel(-module) postinst to generate .dep for now running 3.4.3 (From OE-Core rev: 2a7cdf088e484bb123a72826a02c3169a418ed0a) Signed-off-by: Martin Jansa Signed-off-by: Richard Purdie --- meta/classes/kernel.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/classes') diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 5f6ff6672b..7512ee0cdb 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -276,13 +276,13 @@ fi if [ -n "$D" ]; then ${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} else - depmod -a + depmod -a ${KERNEL_VERSION} fi } pkg_postinst_modules () { if [ -z "$D" ]; then - depmod -a + depmod -a ${KERNEL_VERSION} update-modules || true fi } -- cgit v1.2.3-54-g00ecf