When building completely from sstate (e.g. in pipeline), the
linux-yocto-fitimage recipe deploys from sstate even if the
INITRAMFS_IMAGE requires a rebuild.

Using dm-verity or verity image classes, the initramfs image must be
rebuilt after the rootfs. However, linux-yocto-fitimage:do_build was
skipped and went straight for do_deploy from sstate and deployed a
fitImage with an outdated initramfs with old roothash data while the
image and INITRAMFS_IMAGE were being built.

Skipping the do_deploy task in a sstate only build, successfully
triggers linux-yocto-fitimage:do_build after
INITRAMFS_IMAGE:do_image_complete.
This also follows fitimage.bbclass[1] from meta-oe.

[1]: 
https://git.openembedded.org/meta-openembedded/tree/meta-oe/classes/fitimage.bbclass?h=wrynose#n522

Signed-off-by: Tafil Avdyli <[email protected]>
---
 meta/classes-recipe/kernel-fit-image.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes-recipe/kernel-fit-image.bbclass 
b/meta/classes-recipe/kernel-fit-image.bbclass
index ae8f3c6688..03272bab51 100644
--- a/meta/classes-recipe/kernel-fit-image.bbclass
+++ b/meta/classes-recipe/kernel-fit-image.bbclass
@@ -241,3 +241,4 @@ do_deploy() {
     fi
 }
 addtask deploy after do_compile before do_build
+SSTATE_SKIP_CREATION:task-deploy = "1"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#238099): 
https://lists.openembedded.org/g/openembedded-core/message/238099
Mute This Topic: https://lists.openembedded.org/mt/119630574/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to