kernel.bbclass: pass ${KERNEL_VERSION} to depmod -a
authorMichael Smith <msmith@cbnco.com>
Mon, 9 Nov 2009 12:11:36 +0000 (12:11 +0000)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Thu, 4 Mar 2010 15:08:36 +0000 (16:08 +0100)
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>
classes/kernel.bbclass

index 3a52a06..69ab422 100644 (file)
@@ -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
 }