sdcard_image bbclass: raise number of inodes to avoid out of space errors
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 1 Nov 2011 13:56:10 +0000 (14:56 +0100)
committerKoen Kooi <koen@dominion.thruhere.net>
Tue, 1 Nov 2011 13:56:10 +0000 (14:56 +0100)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
classes/sdcard_image.bbclass

index 4ebc9986aec153b4dbdc94a51947404d1f21f5c7..45dc54d51dac6637aa77a1dc43de16d6532b298d 100644 (file)
@@ -114,7 +114,8 @@ IMAGE_CMD_sdimg () {
        # should use fdisk info
        echo "Creating ext3 image"
        touch ${WORKDIR}/${IMAGE_NAME}.rootfs.ext3
-       genext2fs -b $FS_SIZE_BLOCKS -d ${IMAGE_ROOTFS} ${WORKDIR}/${IMAGE_NAME}.rootfs.ext3
+       # lots of small files, so use 8k per inode, not 64k
+       genext2fs -i 8192 -b $FS_SIZE_BLOCKS -d ${IMAGE_ROOTFS} ${WORKDIR}/${IMAGE_NAME}.rootfs.ext3
        tune2fs -L ${IMAGE_NAME} -j ${WORKDIR}/${IMAGE_NAME}.rootfs.ext3
 
        dd if=${WORKDIR}/${IMAGE_NAME}.rootfs.ext3 of=${LOOPDEV_FS}