Skip to contentSkip to conversation

classes/image_types_wic: Reorder do_flush_pseudodb

PATCH New Ricardo Ribalda 1 participant 1 message May 18, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 classes/image_types_wic: Reorder do_flush_pseudodb

When IMAGE_FSTYPES contains more types than wic, it can happen than the pseudo database is not flushed properly.

This can be solved by changing the order of when do_flush_pseudodb is launched.

Yocto Bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13898

Fixes dde90a5dd2b2 ("wic: Fix multi images .wks with bitbake")
---
 meta/classes/image_types_wic.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image_types_wic.bbclass +1 -1
index 96ed0473ee..7b1db50a28 100644
@@ -142,7 +142,7 @@ python do_rootfs_wicenv () {
     depdir = d.getVar('IMGDEPLOYDIR')
     bb.utils.copyfile(os.path.join(outdir, basename) + '.env', os.path.join(depdir, basename) + '.env')
 }
-addtask do_flush_pseudodb after do_image before do_image_wic
+addtask do_flush_pseudodb after do_rootfs before do_image do_image_qa
 addtask do_rootfs_wicenv after do_image before do_image_wic
 do_rootfs_wicenv[vardeps] += "${WICVARS}"
 do_rootfs_wicenv[prefuncs] = 'set_image_size'
Signature · 1 line
2.26.2