aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-07-13 09:12:01 +0000
committerEric Bénard <eric@eukrea.com>2012-07-13 11:28:25 +0200
commit51cd7ea1e65ca1f6cabb55505ae0cee420abf487 (patch)
tree856900f4d7b19c96eeb449b581620d9df3c4f773
parent2c9b3e2da86e64557b5234c45b34dbc855c309ab (diff)
downloadmeta-openembedded-51cd7ea1e65ca1f6cabb55505ae0cee420abf487.tar.gz
meta-openembedded-51cd7ea1e65ca1f6cabb55505ae0cee420abf487.tar.bz2
meta-openembedded-51cd7ea1e65ca1f6cabb55505ae0cee420abf487.zip
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 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Eric Bénard <eric@eukrea.com>
-rw-r--r--meta-oe/classes/kernel.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index 66398ef39..ce82351f8 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/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
}