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>
This commit is contained in:
Christer Fletcher
2021-09-23 17:45:49 +02:00
committed by Armin Kuster
parent 6a19cc9f00
commit 650e6d6d4b

View File

@@ -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} \