diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-06-19 09:42:10 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-21 12:37:22 +0100 |
commit | 4bd5c17f55bc96ce6bbaccf6559aa4ea123ff4cb (patch) | |
tree | 31e9675f089ff7989fd359b7259e3e02a886c14f | |
parent | 7f08d3b6c95ed7ebc1d46852a18a785921d1cc23 (diff) | |
download | openembedded-core-4bd5c17f55bc96ce6bbaccf6559aa4ea123ff4cb.tar.gz openembedded-core-4bd5c17f55bc96ce6bbaccf6559aa4ea123ff4cb.tar.bz2 openembedded-core-4bd5c17f55bc96ce6bbaccf6559aa4ea123ff4cb.zip |
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 116e10b9de..a455164649 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 } |