summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-06-19 07:34:56 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-06-20 13:33:25 +0200
commit5e47c1c48fa63770ed95b9f24ba2291924725294 (patch)
treea4ca03afea9c1a2404b89bc1e0bd5bc753b65ac3 /meta-oe/classes
parentb84f1a473856e8560761e1e3f045f805a7fe9362 (diff)
downloadmeta-openembedded-5e47c1c48fa63770ed95b9f24ba2291924725294.tar.gz
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>
Diffstat (limited to 'meta-oe/classes')
-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 b431f8e1d..b30ed36ba 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -276,13 +276,13 @@ fi
276if [ -n "$D" ]; then 276if [ -n "$D" ]; then
277 depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} 277 depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
278else 278else
279 depmod -a 279 depmod -a ${KERNEL_VERSION}
280fi 280fi
281} 281}
282 282
283pkg_postinst_modules () { 283pkg_postinst_modules () {
284if [ -z "$D" ]; then 284if [ -z "$D" ]; then
285 depmod -a 285 depmod -a ${KERNEL_VERSION}
286 update-modules || true 286 update-modules || true
287fi 287fi
288} 288}