summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/image.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 5af8cef837..0037ab5f4b 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -114,6 +114,15 @@ fakeroot do_rootfs () {
114 # (new format for cross arch compatibility) 114 # (new format for cross arch compatibility)
115 ldconfig -r ${IMAGE_ROOTFS} -c new 115 ldconfig -r ${IMAGE_ROOTFS} -c new
116 116
117 # (re)create kernel modules dependencies
118 # This part is done by kernel-module-* postinstall scripts but if image do
119 # not contains modules at all there are few moments in boot sequence with
120 # "unable to open modules.dep" message.
121 KERNEL_VERSION=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion`
122
123 mkdir -p ${IMAGE_ROOTFS}/lib/modules/$KERNEL_VERSION
124 ${TARGET_SYS}-depmod-2.6 -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION
125
117 ${IMAGE_POSTPROCESS_COMMAND} 126 ${IMAGE_POSTPROCESS_COMMAND}
118 127
119 ${MACHINE_POSTPROCESS_COMMAND} 128 ${MACHINE_POSTPROCESS_COMMAND}