public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Cc: felix.moessbauer@siemens.com
Subject: Re: [PATCH v2 0/3] Fix data-race in deployment of initrd
Date: Wed, 22 Feb 2023 20:07:30 +0300	[thread overview]
Message-ID: <4752365.OV4Wx5bFTl@home> (raw)
In-Reply-To: <20230218103038.3005105-1-felix.moessbauer@siemens.com>

In the email from Saturday, 18 February 2023 13:30:35 +03 user Felix 
Moessbauer wrote:
> Changes since v1:
> 
> - add API changelog entry
> - fix expression in INITRD_DEPLOY_FILE
> - do not append ${PN} to deploy-dir in image.bb
> 
> 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
> 
>  RECIPE-API-CHANGELOG.md        |  8 ++++++++
>  meta/classes/image.bbclass     | 36 ++++++++++++++++++++++------------
>  meta/classes/initramfs.bbclass | 18 ++++++++++++-----
>  scripts/start_vm               |  4 ++--
>  testsuite/start_vm.py          |  2 +-
>  5 files changed, 48 insertions(+), 20 deletions(-)

While testing this patchset, discovered that initrd files for some targets 
(like qemuarm-buillseye, qemuarm64-bullseye) are not deployed, so run tests 
for these qemu machines fail.

The issue can is also easily reproducible with kas.



      parent reply	other threads:[~2023-02-22 17:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-18 10:30 Felix Moessbauer
2023-02-18 10:30 ` [PATCH v2 1/3] add initramfs to sstate-cache Felix Moessbauer
2023-02-18 10:30 ` [PATCH v2 2/3] deploy boot files via sstate-cache Felix Moessbauer
2023-02-18 10:30 ` [PATCH v2 3/3] fix race-cond between default and custom initrd Felix Moessbauer
2023-02-22 17:40   ` Uladzimir Bely
2023-02-23  3:36     ` Moessbauer, Felix
2023-02-23  5:57       ` Uladzimir Bely
2023-02-23  6:33         ` Moessbauer, Felix
2023-02-23  5:55   ` Moessbauer, Felix
2023-02-22 17:07 ` Uladzimir Bely [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4752365.OV4Wx5bFTl@home \
    --to=ubely@ilbers.de \
    --cc=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox