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>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Martin Jansa
2012-06-19 07:34:56 +00:00
committed by Koen Kooi
parent b84f1a4738
commit 5e47c1c48f

View File

@@ -276,13 +276,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
}