diff mbox series

[meta-oe] image_types_sparse: use .sparse extension to create subimage link

Message ID 20260903074303.306722-1-leo@missingno.tech
State New
Headers show
Series [meta-oe] image_types_sparse: use .sparse extension to create subimage link | expand

Commit Message

leo@missingno.tech Sept. 3, 2026, 7:43 a.m. UTC
If the image extension (.simg) does not match the CONVERSIONTYPE
(sparse), the function create_symlinks() in oe-core image.bbclass
fails to create the image link for this subimage.
Using the .sparse extension for images produced by the
ext2simg_android tool fixes this and generates a usable image link.

Signed-off-by: Leo Sartre <leo@missingno.tech>
---
 meta-oe/classes/image_types_sparse.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/classes/image_types_sparse.bbclass b/meta-oe/classes/image_types_sparse.bbclass
index 5c1d92bd18..b2a58b8757 100644
--- a/meta-oe/classes/image_types_sparse.bbclass
+++ b/meta-oe/classes/image_types_sparse.bbclass
@@ -16,7 +16,7 @@  CONVERSION_CMD:sparse = " \
     case '${type}' in \
         ext*) \
             bbnote 'Running e2fsprogs-derived ext2simg_android..' ; \
-            ext2simg_android '${IMAGE_NAME}.${type}' '${IMAGE_NAME}.${type}.simg' || bberror 'ext2simg_android failed' \
+            ext2simg_android '${IMAGE_NAME}.${type}' '${IMAGE_NAME}.${type}.sparse' || bberror 'ext2simg_android failed' \
             ;; \
         *) \
             bbnote 'Generating sparse image for non-ext filesystem...'; \