]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst
authorMartin Jansa <martin.jansa@gmail.com>
Tue, 28 Aug 2012 06:41:44 +0000 (08:41 +0200)
committerScott Garman <scott.a.garman@intel.com>
Mon, 24 Sep 2012 16:51:10 +0000 (09:51 -0700)
* 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>
meta/classes/kernel.bbclass

index 5f6ff6672bf6b6782e0a8827c364b8e596c9dabe..7512ee0cdb615e99c38d776fb52dc27d7a415499 100644 (file)
@@ -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
 }