[0/3] Fix data-race in deployment of initrd

Message ID 20230217100118.2912985-1-felix.moessbauer@siemens.com
Headers show
Series Fix data-race in deployment of initrd | expand

Message

MOESSBAUER, Felix Feb. 17, 2023, 10:01 a.m. UTC
This patch fixes a data race in the deployment of the initrd, as discussed on
the ML in "Issues creating images with custom initramfs". As a measure against
further races on these files, we also use the sstate cache for deployment.

Please note, that imaging with wic + grub or systemd-boot with a custom
initramfs is still broken. This is due to the wic logic, which reads the
initrd in the rootfs, but not the one in the deploy dir.

Best regards,
Felix Moessbauer
Siemens AG

Felix Moessbauer (3):
  add initramfs to sstate-cache
  deploy boot files via sstate-cache
  fix race-cond between default and custom initrd

 meta/classes/image.bbclass     | 38 ++++++++++++++++++++++------------
 meta/classes/initramfs.bbclass | 18 +++++++++++-----
 scripts/start_vm               |  4 ++--
 testsuite/start_vm.py          |  2 +-
 4 files changed, 41 insertions(+), 21 deletions(-)