All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-security]Circular dependency issue when using dm-verity feature
@ 2022-11-01 14:05 Arun C
  0 siblings, 0 replies; only message in thread
From: Arun C @ 2022-11-01 14:05 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]

Hi,

I was trying to build a linux image for the microchip SAMA7 board with the
dm-verity feature of the meta-security layer. But using this layer for
dm-verity causes a circular dependency error during build.

my *local.conf *changes:






*INITRAMFS_IMAGE_BUNDLE = "1"INITRAMFS_IMAGE =
"dm-verity-image-initramfs"DM_VERITY_IMAGE =
"custom-image-sama7"DM_VERITY_IMAGE_TYPE = "squashfs"IMAGE_CLASSES +=
"dm-verity-img"*

I have to comment out the line:
*do_rootfs[depends] +=
"${DM_VERITY_IMAGE}:do_image_${DM_VERITY_IMAGE_TYPE}"*
in the dm-verity-image-initramfs.bb file to avoid this circular dependency.
But then the .itb file in the new wic image is not updated with the new
rootfs ROOT_HASH. So the dm-verity check during boot fails and the image
won't boot.

I'm using the dunfell branch. Is there any way to fix this issue and get a
working wic image?

[-- Attachment #2: Type: text/html, Size: 1094 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-01 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-01 14:05 [meta-security]Circular dependency issue when using dm-verity feature Arun C

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.