mirror of
https://git.yoctoproject.org/meta-security
synced 2026-07-16 15:57:21 +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() {
|
dmverity_run() {
|
||||||
DATA_SIZE="__not_set__"
|
DATA_SIZE="__not_set__"
|
||||||
|
DATA_BLOCK_SIZE="__not_set__"
|
||||||
ROOT_HASH="__not_set__"
|
ROOT_HASH="__not_set__"
|
||||||
|
|
||||||
. /usr/share/misc/dm-verity.env
|
. /usr/share/misc/dm-verity.env
|
||||||
@@ -49,7 +50,7 @@ dmverity_run() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
veritysetup \
|
veritysetup \
|
||||||
--data-block-size=1024 \
|
--data-block-size=${DATA_BLOCK_SIZE} \
|
||||||
--hash-offset=${DATA_SIZE} \
|
--hash-offset=${DATA_SIZE} \
|
||||||
create rootfs \
|
create rootfs \
|
||||||
${RDEV} \
|
${RDEV} \
|
||||||
|
|||||||
Reference in New Issue
Block a user