From: "'Clara Kowalsky' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Clara Kowalsky <clara.kowalsky@siemens.com>
Subject: [PATCH 3/4] initramfs: include manifest in sstate artifacts
Date: Thu, 29 Oct 2026 11:20:26 +0100 [thread overview]
Message-ID: <20261029102027.1974884-3-clara.kowalsky@siemens.com> (raw)
In-Reply-To: <20261029102027.1974884-1-clara.kowalsky@siemens.com>
initramfs.bbclass overrides ROOTFS_MANIFEST_DEPLOY_DIR to
DEPLOY_DIR_IMAGE, but as do_rootfs_install captures DEPLOYDIR for
sstate, the initramfs manifest is missing after cache restoration.
Fix this by staging the initramfs manifests to DEPLOYDIR too. The sstate
test is extended to build an external initramfs and verify that its
manifest is restored.
Fixes: c7a637508ac6 ("rootfs: fold do_rootfs_postprocess task into do_rootfs_install")
Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
---
meta/classes-recipe/initramfs.bbclass | 2 +-
testsuite/citest.py | 12 ++++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/meta/classes-recipe/initramfs.bbclass b/meta/classes-recipe/initramfs.bbclass
index 41828487..9ae9c556 100644
--- a/meta/classes-recipe/initramfs.bbclass
+++ b/meta/classes-recipe/initramfs.bbclass
@@ -20,7 +20,7 @@ INITRAMFS_INSTALL += "${@ ("linux-image-" + d.getVar("KERNEL_NAME")) if d.getVar
INITRAMFS_FULLNAME = "${PN}-${DISTRO}-${MACHINE}"
# Bill-of-material
-ROOTFS_MANIFEST_DEPLOY_DIR = "${DEPLOY_DIR_IMAGE}"
+ROOTFS_MANIFEST_DEPLOY_DIR = "${DEPLOYDIR}"
ROOTFS_PACKAGE_SUFFIX = "${INITRAMFS_FULLNAME}"
SBOM_DISTRO_NAME:append = "-Initramfs"
diff --git a/testsuite/citest.py b/testsuite/citest.py
index d057ffa2..973321ae 100644
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -1562,17 +1562,25 @@ class SstateTest(CIBaseTest):
:avocado: tags=sstate
"""
+ IMAGE_INITRD_LINES = ["IMAGE_INITRD = 'isar-initramfs'"]
+
def test_sstate_populate(self):
image_target = 'mc:qemuamd64-bullseye:isar-image-base'
- self.perform_sstate_populate(image_target)
+ self.perform_sstate_populate(
+ image_target, lines=self.IMAGE_INITRD_LINES
+ )
def test_sstate(self):
image_target = 'mc:qemuamd64-bullseye:isar-image-base'
package_target = 'mc:qemuamd64-bullseye:hello'
self.init('build/build-sstate')
- self.perform_sstate_test(image_target, package_target)
+ self.perform_sstate_test(
+ image_target,
+ package_target,
+ lines=self.IMAGE_INITRD_LINES,
+ )
class SingleTest(CIBaseTest):
--
2.55.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20261029102027.1974884-3-clara.kowalsky%40siemens.com.
next prev parent reply other threads:[~2026-10-29 10:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 10:20 [PATCH 1/4] testsuite: fix sstate test with relocated build directory 'Clara Kowalsky' via isar-users
2026-10-29 10:20 ` [PATCH 2/4] image: include rootfs manifests in sstate artifacts 'Clara Kowalsky' via isar-users
2026-10-29 10:20 ` 'Clara Kowalsky' via isar-users [this message]
2026-10-29 10:20 ` [PATCH 4/4] meta-test: stage rootfs CI manifest in DEPLOYDIR 'Clara Kowalsky' via isar-users
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=20261029102027.1974884-3-clara.kowalsky@siemens.com \
--to=isar-users@googlegroups.com \
--cc=clara.kowalsky@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