aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/module.bbclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/module.bbclass b/classes/module.bbclass
index eef98292a7..83463ac84c 100644
--- a/classes/module.bbclass
+++ b/classes/module.bbclass
@@ -24,11 +24,12 @@ module_do_install() {
}
pkg_postinst_append () {
- if [ -n "$D" ]; then
- exit 1
- fi
- depmod -a
+if [ -n "$D" ]; then
+ exit 1
+else
+ depmod -a ${KERNEL_VERSION}
update-modules || true
+fi
}
pkg_postrm_append () {