All of lore.kernel.org
 help / color / mirror / Atom feed
* wic builds an empty rootfs on second image build with rm_work enabled
@ 2024-11-04 15:10 Mikko Rapeli
  2024-11-05 15:53 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Mikko Rapeli @ 2024-11-04 15:10 UTC (permalink / raw)
  To: openembedded-core

Hi,

After image build completes, rootfs directory is wiped by rm_work_rootfs.

If the image recipe is built again without clean, for example when
TESTIMAGE_AUTO is enabled to run tests, then rootfs task will not
run and thus wic uses an empty rootfs directory to populate the rootfs which
of course then fails at runtime.

How to fix this?

I know RP doesn't like rm_work, but I really need it. I can't leave all
builds laying around and bitbake IPC setup fails if a lot of IO is wiping
build/tpm's while recipe parsing is happening (the famous 30 second timeout).

wic image related tasks could possible depend on do_rootfs instead of
do_image_complete but seems to break the whole do_image_complete design.

Should rm_work_rootfs be moved from after do_image_complete to after do_image_wic
if wic images are used?

Or should users just remember to "bitbake -c clean image && bitbake image" if things
fail?

There are some other issues with testimage.bbclass and leaking cooker processes
which confused me for a long time but I'll try to send patches for those.

Cheers,

-Mikko


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

end of thread, other threads:[~2024-11-20  8:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-04 15:10 wic builds an empty rootfs on second image build with rm_work enabled Mikko Rapeli
2024-11-05 15:53 ` [OE-core] " Richard Purdie
2024-11-18 14:20   ` Mikko Rapeli
2024-11-18 14:49     ` Mauro Salvini
2024-11-18 14:55       ` Mikko Rapeli
     [not found]       ` <180917DC7939F09D.10466@lists.openembedded.org>
2024-11-19 13:33         ` Mikko Rapeli
     [not found]         ` <180961F040C68F13.21229@lists.openembedded.org>
2024-11-20  8:40           ` Mikko Rapeli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.