From: Felix Moessbauer <felix.moessbauer@siemens.com>
To: isar-users@googlegroups.com
Cc: adriaan.schmidt@siemens.com, jan.kiszka@siemens.com,
Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH v3 0/3] Fix data-race in deployment of initrd
Date: Thu, 23 Feb 2023 06:43:56 +0000 [thread overview]
Message-ID: <20230223064359.4171845-1-felix.moessbauer@siemens.com> (raw)
Changes since v2:
- fix check for default initrd
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(-)
--
2.34.1
next reply other threads:[~2023-02-23 6:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-23 6:43 Felix Moessbauer [this message]
2023-02-23 6:43 ` [PATCH v3 1/3] add initramfs to sstate-cache Felix Moessbauer
2023-02-23 6:43 ` [PATCH v3 2/3] deploy boot files via sstate-cache Felix Moessbauer
2023-12-29 7:29 ` Anton Mikanovich
2024-01-09 12:46 ` MOESSBAUER, Felix
2024-01-09 13:46 ` Jan Kiszka
2024-01-09 14:04 ` Anton Mikanovich
2024-01-10 4:27 ` Jan Kiszka
2024-02-26 13:32 ` Uladzimir Bely
2024-02-26 18:17 ` MOESSBAUER, Felix
2023-02-23 6:43 ` [PATCH v3 3/3] fix race-cond between default and custom initrd Felix Moessbauer
2023-03-06 6:05 ` [PATCH v3 0/3] Fix data-race in deployment of initrd Uladzimir Bely
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=20230223064359.4171845-1-felix.moessbauer@siemens.com \
--to=felix.moessbauer@siemens.com \
--cc=adriaan.schmidt@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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