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 13:03:02 +0100 |
commit | 262e5ac4bc98b19b222d56a788832d268bc8b114 (patch) | |
tree | caa470900a5e18e35a5b00e408e215802b59027e | |
parent | 9ffec01bae82644ba64a8089cfb90249b9ef86b8 (diff) | |
download | poky-262e5ac4bc98b19b222d56a788832d268bc8b114.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
(From OE-Core rev: 4bd5c17f55bc96ce6bbaccf6559aa4ea123ff4cb)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 | |||
271 | if [ -n "$D" ]; then | 271 | if [ -n "$D" ]; then |
272 | depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} | 272 | depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} |
273 | else | 273 | else |
274 | depmod -a | 274 | depmod -a ${KERNEL_VERSION} |
275 | fi | 275 | fi |
276 | } | 276 | } |
277 | 277 | ||
278 | pkg_postinst_modules () { | 278 | pkg_postinst_modules () { |
279 | if [ -z "$D" ]; then | 279 | if [ -z "$D" ]; then |
280 | depmod -a | 280 | depmod -a ${KERNEL_VERSION} |
281 | update-modules || true | 281 | update-modules || true |
282 | fi | 282 | fi |
283 | } | 283 | } |