public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/3] imager sbom: simplify invocation of debsbom tool
@ 2026-09-03 13:10 'Felix Moessbauer' via isar-users
  2026-09-03 13:10 ` [PATCH 2/3] debsbom: update to v0.10.1 'Felix Moessbauer' via isar-users
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-09-03 13:10 UTC (permalink / raw)
  To: isar-users; +Cc: christoph.steiger, Felix Moessbauer

We don't need to create the output directory upfront, as bwrap
internally does this on bind-mounting. Further, we avoid being extra
verbose to align the debsbom CLI with the other invocations.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/classes-recipe/image-tools-extension.bbclass | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/meta/classes-recipe/image-tools-extension.bbclass b/meta/classes-recipe/image-tools-extension.bbclass
index 8f666444..754db7a6 100644
--- a/meta/classes-recipe/image-tools-extension.bbclass
+++ b/meta/classes-recipe/image-tools-extension.bbclass
@@ -102,10 +102,6 @@ EOAPT
 }
 
 generate_imager_sbom_in_chroot() {
-    run_privileged mkdir -p \
-        ${SBOM_CHROOT_LOCAL}/mnt/rootfs \
-        ${SBOM_CHROOT_LOCAL}/mnt/deploy-dir
-
     TIMESTAMP=$(date --iso-8601=s -d @${SOURCE_DATE_EPOCH})
     sbom_document_uuid="${@d.getVar('SBOM_DOCUMENT_UUID') or generate_document_uuid(d, False)}"
     bwrap \
@@ -114,7 +110,7 @@ generate_imager_sbom_in_chroot() {
         --bind ${SBOM_CHROOT_LOCAL} / \
         --bind $1 /mnt/rootfs \
         --bind ${WORKDIR} /mnt/deploy-dir \
-        -- debsbom -vv generate ${SBOM_DEBSBOM_TYPE_ARGS} \
+        -- debsbom -v generate ${SBOM_DEBSBOM_TYPE_ARGS} \
             --from-pkglist -r /mnt/rootfs -o /mnt/deploy-dir/imager \
             --distro-name '${SBOM_DISTRO_NAME}-Imager' --distro-supplier '${SBOM_DISTRO_SUPPLIER}' \
             --distro-version '${SBOM_DISTRO_VERSION}' --distro-arch '${DISTRO_ARCH}' \
-- 
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/20260903131011.968751-1-felix.moessbauer%40siemens.com.

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

end of thread, other threads:[~2026-09-07  8:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03 13:10 [PATCH 1/3] imager sbom: simplify invocation of debsbom tool 'Felix Moessbauer' via isar-users
2026-09-03 13:10 ` [PATCH 2/3] debsbom: update to v0.10.1 'Felix Moessbauer' via isar-users
2026-09-03 13:10 ` [PATCH 3/3] rootfs sbom: directly use captured apt state without extraction 'Felix Moessbauer' via isar-users
2026-09-07  8:04 ` [PATCH 1/3] imager sbom: simplify invocation of debsbom tool 'MOESSBAUER, Felix' via isar-users

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