diff options
author | Lorenzo Arena <arena.lor@gmail.com> | 2025-02-17 15:54:20 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2025-03-12 15:31:15 -0400 |
commit | 674f1e3367c7cfb606047b2050338c725ba2eca2 (patch) | |
tree | 0fbf0c5ce1149a2449e2e8e663a85b5b7f4030e5 | |
parent | a76a5c51283b9d361caf514dc5cdebd72b5b4ca1 (diff) | |
download | meta-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.bbclass | 2 |
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} \ |