aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChrister Fletcher <christer.fletcher@inter.ikea.com>2021-09-23 17:45:49 +0200
committerArmin Kuster <akuster808@gmail.com>2021-09-28 16:18:41 -0700
commit650e6d6d4bba0b7f6dcf879ba8970925f9fc1412 (patch)
tree820c108025e2b3f6ad30dceea415aeb27b902cba
parent6a19cc9f003f3caf92a6ea7fbddc6660f3f815cb (diff)
downloadmeta-security-650e6d6d4bba0b7f6dcf879ba8970925f9fc1412.zip
meta-security-650e6d6d4bba0b7f6dcf879ba8970925f9fc1412.tar.gz
meta-security-650e6d6d4bba0b7f6dcf879ba8970925f9fc1412.tar.bz2
dmverity: Make use of DATA_BLOCK_SIZE variable in initrdscript.
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> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-core/initrdscripts/initramfs-framework-dm/dmverity3
1 files changed, 2 insertions, 1 deletions
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} \