public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] create separate BOM for external initrd
@ 2025-08-04 13:22 'Felix Moessbauer' via isar-users
  2025-08-21 12:27 ` 'MOESSBAUER, Felix' via isar-users
  2025-08-27  9:42 ` Baurzhan Ismagulov
  0 siblings, 2 replies; 3+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2025-08-04 13:22 UTC (permalink / raw)
  To: isar-users; +Cc: Felix Moessbauer, gernot.hillier, cedric.hombourger

The BOM (manifest file) describes all packages installed in a rootfs.
Currently, the BOM is just generated for the images rootfs, but not for
the initrd. This is fine, as long as no separate initrd is used. Tests
on isar-cip-core have shown, that ~4-10 source packages are only
referenced by the initrd rootfs, but not by the image rootfs.

We change this by generating the BOM also for the rootfs of external
initrds. Note, that this has a significant overlap with the images
rootfs, as it also contains all essential packages. As there is
currently no way to explain in a uniform BOM which components are used
where, the merging of the BOMs is left to the user.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
I plan so send a similar patch to the SBOM RFC series as well.

Best regards,
Felix

 meta/classes/initramfs.bbclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/classes/initramfs.bbclass b/meta/classes/initramfs.bbclass
index 3a996f78..658ef0ac 100644
--- a/meta/classes/initramfs.bbclass
+++ b/meta/classes/initramfs.bbclass
@@ -18,10 +18,14 @@ INITRAMFS_INSTALL += "${@ ("linux-image-" + d.getVar("KERNEL_NAME")) if d.getVar
 # Name of the initramfs including distro&machine names
 INITRAMFS_FULLNAME = "${PN}-${DISTRO}-${MACHINE}"
 
+# Bill-of-material
+ROOTFS_MANIFEST_DEPLOY_DIR = "${DEPLOY_DIR_IMAGE}"
+ROOTFS_PACKAGE_SUFFIX = "${INITRAMFS_FULLNAME}"
+
 DEPENDS += "${INITRAMFS_INSTALL}"
 
 ROOTFSDIR = "${INITRAMFS_ROOTFS}"
-ROOTFS_FEATURES = ""
+ROOTFS_FEATURES = "generate-manifest"
 ROOTFS_PACKAGES = "initramfs-tools ${INITRAMFS_PREINSTALL} ${INITRAMFS_INSTALL}"
 
 inherit rootfs
-- 
2.50.1

-- 
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/20250804132243.1349594-1-felix.moessbauer%40siemens.com.

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

end of thread, other threads:[~2025-08-27  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-04 13:22 [PATCH 1/1] create separate BOM for external initrd 'Felix Moessbauer' via isar-users
2025-08-21 12:27 ` 'MOESSBAUER, Felix' via isar-users
2025-08-27  9:42 ` Baurzhan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox