diff options
author | Michael Smith <msmith@cbnco.com> | 2009-11-09 12:11:36 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2010-03-04 16:08:36 +0100 |
commit | 82c4e6b36216f2b1c31116a5c784f5e256a1a241 (patch) | |
tree | 5c6f491d0cc219a82a8393f41e4296e8e0460725 /classes/kernel.bbclass | |
parent | 7e0dca393772c8145fb8dccd1a5898bc4fb7933a (diff) |
kernel.bbclass: pass ${KERNEL_VERSION} to depmod -a
The postinsts for kernel-image and modules run "depmod -a" on the
target, but this only updates the old kernel's modules.dep.
"depmod -a ${KERNEL_VERSION}" updates the files in
/lib/modules/${KERNEL_VERSION}.
Signed-off-by: Michael Smith <msmith@cbnco.com>
Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Diffstat (limited to 'classes/kernel.bbclass')
-rw-r--r-- | classes/kernel.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 3a52a067cc..69ab422c43 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -267,7 +267,7 @@ fi if [ -n "$D" ]; then ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} else - depmod -a + depmod -a ${KERNEL_VERSION} fi } @@ -275,7 +275,7 @@ pkg_postinst_modules () { if [ -n "$D" ]; then ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION} else - depmod -a + depmod -a ${KERNEL_VERSION} update-modules || true fi } |