Patchwork [2/2] kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst

login
register
mail settings
Submitter Martin Jansa
Date June 19, 2012, 7:42 a.m.
Message ID <1340091730-5993-2-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/30103/
State Accepted
Commit 4bd5c17f55bc96ce6bbaccf6559aa4ea123ff4cb
Headers show

Comments

Martin Jansa - June 19, 2012, 7:42 a.m.
* 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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 116e10b..a455164 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -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
 }