]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: generate modules.dep
authorMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 9 Oct 2008 09:36:00 +0000 (09:36 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 9 Oct 2008 09:36:00 +0000 (09:36 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5468 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/image.bbclass

index 5af8cef837611691423b4a299a9ea9676075726b..0037ab5f4bfa5ccd0c7e275818de473e231884a5 100644 (file)
@@ -114,6 +114,15 @@ fakeroot do_rootfs () {
        # (new format for cross arch compatibility)
        ldconfig -r ${IMAGE_ROOTFS} -c new
 
+       # (re)create kernel modules dependencies
+       # This part is done by kernel-module-* postinstall scripts but if image do
+       # not contains modules at all there are few moments in boot sequence with
+       # "unable to open modules.dep" message.
+       KERNEL_VERSION=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion`
+
+       mkdir -p ${IMAGE_ROOTFS}/lib/modules/$KERNEL_VERSION
+       ${TARGET_SYS}-depmod-2.6 -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION
+
        ${IMAGE_POSTPROCESS_COMMAND}
        
        ${MACHINE_POSTPROCESS_COMMAND}