mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
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:
committed by
Armin Kuster
parent
6a19cc9f00
commit
650e6d6d4b
@@ -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} \
|
||||
|
||||
Reference in New Issue
Block a user