mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
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:
parent
455661a33a
commit
fe90d20953
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user