Openembedded Core Discussions
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] image-live: order bootimg after rootfs
@ 2021-05-26 18:32 Guillaume Champagne
  2021-05-26 18:32 ` [RFC PATCH 1/1] image-live.bbclass: order do_bootimg after do_rootfs Guillaume Champagne
  0 siblings, 1 reply; 4+ messages in thread
From: Guillaume Champagne @ 2021-05-26 18:32 UTC (permalink / raw)
  To: openembedded-core, fntoth; +Cc: Guillaume Champagne

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-05 12:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-26 18:32 [RFC PATCH 0/1] image-live: order bootimg after rootfs Guillaume Champagne
2021-05-26 18:32 ` [RFC PATCH 1/1] image-live.bbclass: order do_bootimg after do_rootfs Guillaume Champagne
2021-06-01 20:12   ` Ferry Toth
     [not found]   ` <16848E63E6244007.7311@lists.openembedded.org>
2021-06-05 12:59     ` [OE-core] " Ferry Toth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox