dm-verity-img.bbclass: set sparse as "never" during initial file copy

This is needed when a verity image is used in conjunction with tools
like a WIC and a bmap file, as avoiding writing "sparse" sectors
can result in errors in the signature verification.

Signed-off-by: Lorenzo Arena <arena.lor@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Lorenzo Arena
2025-02-17 15:54:20 +01:00
committed by Armin Kuster
parent a76a5c5128
commit 674f1e3367

View File

@@ -146,7 +146,7 @@ verity_setup() {
HASH_OFFSET="--hash-offset="$SIZE
fi
cp -a $INPUT $OUTPUT
cp -a --sparse=never $INPUT $OUTPUT
SETUP_ARGS=" \
${DM_VERITY_SETUP_ARGS} \