[OE-core] [PATCH 4/4] image_types.bbclass: replace genext2fs with populate-extfs.sh
Jonathan Liu
net147 at gmail.com
Fri May 10 14:46:52 UTC 2013
On 7/05/2013 7:48 PM, Robert Yang wrote:
> -oe_mkext4fs () {
> - genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} $1
> - tune2fs -O extents,uninit_bg,dir_index,has_journal $1
> - e2fsck -yfDC0 $1 || chk=$?
> - case $chk in
> - 0|1|2)
> - ;;
> - *)
> - return $chk
> - ;;
> - esac
> + # Create a sparse image block
> + dd if=/dev/zero of=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.$fstype seek=$ROOTFS_SIZE count=0 bs=1k
> + yes | mkfs.$fstype $extra_imagecmd ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.$fstype
yes | mkfs.$fstype can be simplified to mkfs.$fstype -F
> + populate-extfs.sh ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.$fstype
> }
Regards,
Jonathan
More information about the Openembedded-core
mailing list