diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-08-28 08:41:44 +0200 |
---|---|---|
committer | Scott Garman <scott.a.garman@intel.com> | 2012-09-24 09:51:10 -0700 |
commit | 2a7cdf088e484bb123a72826a02c3169a418ed0a (patch) | |
tree | 8c213b7b7b10843444059834ec27d29ff10eb33b | |
parent | 13d82ecd6b25ff4c34b3639e10113d7ebb33dc88 (diff) | |
download | openembedded-core-2a7cdf088e484bb123a72826a02c3169a418ed0a.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>
-rw-r--r-- | meta/classes/kernel.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 5f6ff6672b..7512ee0cdb 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/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 } |