Skip to contentSkip to conversation

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

PATCH New Lorenzo Arena 1 participant 1 message Apr 4, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 classes/dm-verity-img.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
classes/dm-verity-img.bbclass +1 -1
index 7f79548..df9c278 100644
@@ -143,7 +143,7 @@ verity_setup() {
         HASH_OFFSET="--hash-offset="$SIZE
     fi
 
-    cp -a $INPUT $OUTPUT
+    cp -a --sparse=never $INPUT $OUTPUT
 
     SETUP_ARGS=" \
         --data-block-size=${DM_VERITY_IMAGE_DATA_BLOCK_SIZE} \
Signature · 1 line
2.43.0