summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Arena <arena.lor@gmail.com>2025-02-17 15:54:20 +0100
committerArmin Kuster <akuster808@gmail.com>2025-03-12 15:31:15 -0400
commit674f1e3367c7cfb606047b2050338c725ba2eca2 (patch)
tree0fbf0c5ce1149a2449e2e8e663a85b5b7f4030e5
parenta76a5c51283b9d361caf514dc5cdebd72b5b4ca1 (diff)
downloadmeta-security-674f1e3367c7cfb606047b2050338c725ba2eca2.tar.gz
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>
-rw-r--r--classes/dm-verity-img.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/dm-verity-img.bbclass b/classes/dm-verity-img.bbclass
index 296020a..47f698c 100644
--- a/classes/dm-verity-img.bbclass
+++ b/classes/dm-verity-img.bbclass
@@ -146,7 +146,7 @@ verity_setup() {
146 HASH_OFFSET="--hash-offset="$SIZE 146 HASH_OFFSET="--hash-offset="$SIZE
147 fi 147 fi
148 148
149 cp -a $INPUT $OUTPUT 149 cp -a --sparse=never $INPUT $OUTPUT
150 150
151 SETUP_ARGS=" \ 151 SETUP_ARGS=" \
152 ${DM_VERITY_SETUP_ARGS} \ 152 ${DM_VERITY_SETUP_ARGS} \