image_types_sparse: stop using ext2simg

Under some conditions ext2simg can corrupt the file system (see
https://lore.kernel.org/linux-ext4/CAP71WjwVdqmLEq1NGWK36JkEd-i05YcAu4jeY6GFjsk6TS=Mtg@mail.gmail.com/).
This has been reproduced with the ext2simg currently found meta-oe's
android-tools-native). Stop using ext2simg and always use img2simg. This
results in bigger images, but without the risk of image corruption.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Dmitry Baryshkov 2021-08-18 18:39:32 +03:00 committed by Khem Raj
parent 455661a33a
commit fe90d20953

View File

@ -2,15 +2,7 @@ inherit image_types
CONVERSIONTYPES += "sparse"
CONVERSION_CMD:sparse = " \
case "${type}" in \
ext*) \
ext2simg "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" \
"${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse" \
;; \
*) \
img2simg "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" \
"${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse" \
;; \
esac \
img2simg "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" \
"${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse" \
"
CONVERSION_DEPENDS_sparse = "android-tools-native"