]> 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, 19 Jun 2012 07:42:10 +0000 (09:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Jun 2012 11:37:22 +0000 (12:37 +0100)
* 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 116e10b9de7275f906584837156d47d66fd4e80c..a455164649f30dc94c8b2fa3e9b34c3864e45989 100644 (file)
@@ -271,13 +271,13 @@ fi
 if [ -n "$D" ]; then
        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
 }