]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/image_types_wic: Reorder do_flush_pseudodb
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Mon, 18 May 2020 10:22:04 +0000 (12:22 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 9 Feb 2021 16:12:09 +0000 (06:12 -1000)
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")
Signed-off-by: Ricardo Ribalda <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 445b0a9544b55735496bbb23dbff3399b3b9e9a4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/image_types_wic.bbclass

index f6c8d8995e48146deb66f23c4b3b47f1b937d54b..ae00acc5ea8b3e428d88257cf4267ec8791d2c3c 100644 (file)
@@ -151,7 +151,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'