diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 0037ab5f4..239d93723 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -118,10 +118,12 @@ fakeroot do_rootfs () { # 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` + if [ -e ${STAGING_KERNEL_DIR}/kernel-abiversion ]; then + 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 + 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 + fi ${IMAGE_POSTPROCESS_COMMAND} |