luksmeta/0002-Force-creation-of-LUKS1-containers-in-test-suite.patch
Zhiqiang Liu 6dfc8c0a5c luksmeta: backport upstream bugfix patches
luksmeta: backport upstream bugfix patches

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2020-07-13 15:14:29 +08:00

28 lines
779 B
Diff

From 768e926ac640f422f81cf5e7578015188751b028 Mon Sep 17 00:00:00 2001
From: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date: Sat, 28 Sep 2019 13:24:11 +0200
Subject: [PATCH 2/3] Force creation of LUKS1 containers in test suite
Cryptsetup defaults to LUKS2 since version 2.1, make sure to create
LUKS1 containers instead by using the "--type luks1" argument.
---
test-luksmeta | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test-luksmeta b/test-luksmeta
index fd17ead..f1e8b2e 100755
--- a/test-luksmeta
+++ b/test-luksmeta
@@ -11,7 +11,7 @@ function onexit() {
trap 'onexit' EXIT
truncate -s 4M $tmp
-echo -n foo | cryptsetup luksFormat $tmp -
+echo -n foo | cryptsetup luksFormat --type luks1 $tmp -
! ./luksmeta test -d $tmp
--
1.8.3.1