diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2021-08-18 18:39:32 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-08-30 13:44:23 -0700 |
commit | fe90d2095326068cdc3744a3fe56762e3e4562ce (patch) | |
tree | f9b52c175ab62dc85860a7e153cb9f8f537fe305 /meta-oe/classes | |
parent | 455661a33a11c0b335a44b0267d90602a442eb2b (diff) | |
download | meta-openembedded-fe90d2095326068cdc3744a3fe56762e3e4562ce.tar.gz |
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>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/image_types_sparse.bbclass | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/meta-oe/classes/image_types_sparse.bbclass b/meta-oe/classes/image_types_sparse.bbclass index 65d980fd9..4263593a8 100644 --- a/meta-oe/classes/image_types_sparse.bbclass +++ b/meta-oe/classes/image_types_sparse.bbclass | |||
@@ -2,15 +2,7 @@ inherit image_types | |||
2 | 2 | ||
3 | CONVERSIONTYPES += "sparse" | 3 | CONVERSIONTYPES += "sparse" |
4 | CONVERSION_CMD:sparse = " \ | 4 | CONVERSION_CMD:sparse = " \ |
5 | case "${type}" in \ | 5 | img2simg "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" \ |
6 | ext*) \ | 6 | "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse" \ |
7 | ext2simg "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" \ | ||
8 | "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse" \ | ||
9 | ;; \ | ||
10 | *) \ | ||
11 | img2simg "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" \ | ||
12 | "${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse" \ | ||
13 | ;; \ | ||
14 | esac \ | ||
15 | " | 7 | " |
16 | CONVERSION_DEPENDS_sparse = "android-tools-native" | 8 | CONVERSION_DEPENDS_sparse = "android-tools-native" |