Blob Blame History Raw
From b1ef7cc3cdfb708bb08c90425a7dbdef383da84c Mon Sep 17 00:00:00 2001
From: Milan Broz <gmazyland@gmail.com>
Date: Thu, 13 Jan 2022 10:12:45 +0100
Subject: [PATCH 27/28] Fix reencrypt mangle test for older jq.

---
 tests/luks2-reencryption-mangle-test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/luks2-reencryption-mangle-test b/tests/luks2-reencryption-mangle-test
index 0cca23a0..8f308f5d 100755
--- a/tests/luks2-reencryption-mangle-test
+++ b/tests/luks2-reencryption-mangle-test
@@ -51,7 +51,7 @@ function img_json_save()
 	# FIXME: why --json-file cannot be used?
 	#$CRYPTSETUP luksDump --dump-json-metadata $IMG | jq -c -M | tr -d '\n' >$IMG_JSON
 	local LUKS2_JSON_SIZE=$(($JSON_MSIZE - 4096))
-	_dd if=$IMG count=$LUKS2_JSON_SIZE skip=4096 | jq -c -M | tr -d '\n' >$IMG_JSON
+	_dd if=$IMG count=$LUKS2_JSON_SIZE skip=4096 | jq -c -M . | tr -d '\n' >$IMG_JSON
 }
 
 function img_json_dump()
-- 
2.27.0