Hi, Following 96f47c39f1d17f073243913d524bde84add41d8f (image-live.bbclass: optional depends when ROOTFS empty), Ferry noticed that the patch doesn't work correctly if the image's work directory is empty since IMGDEPLOYDIR may not exist when do_bootimg runs.
The following patch fixes this by ordering do_bootimg after do_rootfs, since IMGDEPLOYDIR is created and cleaned before do_rootfs runs (vardeps cleandir). This shouldn't change the build order for recipes that use a ROOTFS, since do_bootimg would already be ordered after do_rootfs via the dependency on do_image_{FS_TYPE}. I'm sending this as an RFC to get the confirmation that this patch is a right way to approach the issue. Furthermore, I feel like if there was a way to entierly skip do_rootfs, that could be great since it doesn't even have to run if the final image doesn't include that rootfs. Thanks, Guillaume Guillaume Champagne (1): image-live.bbclass: order do_bootimg after do_rootfs meta/classes/image-live.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#152276): https://lists.openembedded.org/g/openembedded-core/message/152276 Mute This Topic: https://lists.openembedded.org/mt/83107838/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-