Yocto Project Discussions
 help / color / mirror / Atom feed
* [meta-security][PATCH] dmverity: Make use of DATA_BLOCK_SIZE variable in initrdscript.
@ 2021-09-23 15:45 Paulo Neves
  2021-09-28 23:31 ` [yocto] " akuster808
  0 siblings, 1 reply; 2+ messages in thread
From: Paulo Neves @ 2021-09-23 15:45 UTC (permalink / raw)
  To: yocto; +Cc: Christer Fletcher, Paulo Neves

From: Christer Fletcher <christer.fletcher@inter.ikea.com>

DATA_BLOCK_SIZE variable was set in dm-verity-img.bbclass at build
time but the initrdscript was not updated to pass the DATA_BLOCK_SIZE
to the veritysetup. Now the functionality is complete.

Signed-off-by: Paulo Neves <paulo.neves1@inter.ikea.com>
---
 recipes-core/initrdscripts/initramfs-framework-dm/dmverity | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-core/initrdscripts/initramfs-framework-dm/dmverity b/recipes-core/initrdscripts/initramfs-framework-dm/dmverity
index 888052c..c815940 100644
--- a/recipes-core/initrdscripts/initramfs-framework-dm/dmverity
+++ b/recipes-core/initrdscripts/initramfs-framework-dm/dmverity
@@ -6,6 +6,7 @@ dmverity_enabled() {
 
 dmverity_run() {
     DATA_SIZE="__not_set__"
+    DATA_BLOCK_SIZE="__not_set__"
     ROOT_HASH="__not_set__"
 
     . /usr/share/misc/dm-verity.env
@@ -49,7 +50,7 @@ dmverity_run() {
     done
 
     veritysetup \
-        --data-block-size=1024 \
+        --data-block-size=${DATA_BLOCK_SIZE} \
         --hash-offset=${DATA_SIZE} \
         create rootfs \
         ${RDEV} \
-- 
2.25.1


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

end of thread, other threads:[~2021-09-28 23:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-23 15:45 [meta-security][PATCH] dmverity: Make use of DATA_BLOCK_SIZE variable in initrdscript Paulo Neves
2021-09-28 23:31 ` [yocto] " akuster808

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