Blame SOURCES/cryptsetup-2.0.4-rephrase-error-message-for-invalid-type-param-in-con.patch

ad2d76
From b60e856087db77abbc5aa62a7f980e62b8b75029 Mon Sep 17 00:00:00 2001
ad2d76
From: Ondrej Kozina <okozina@redhat.com>
ad2d76
Date: Tue, 17 Jul 2018 10:53:13 +0200
ad2d76
Subject: [PATCH] Rephrase error message for invalid --type param in convert.
ad2d76
ad2d76
---
ad2d76
 src/cryptsetup.c | 2 +-
ad2d76
 1 file changed, 1 insertion(+), 1 deletion(-)
ad2d76
ad2d76
diff --git a/src/cryptsetup.c b/src/cryptsetup.c
ad2d76
index fc3481d..5f8df37 100644
ad2d76
--- a/src/cryptsetup.c
ad2d76
+++ b/src/cryptsetup.c
ad2d76
@@ -1851,7 +1851,7 @@ static int action_luksConvert(void)
ad2d76
 	} else if (!strcmp(opt_type, "luks1")) {
ad2d76
 		to_type = CRYPT_LUKS1;
ad2d76
 	} else {
ad2d76
-		log_err(_("Missing LUKS target type, option --type is required."));
ad2d76
+		log_err(_("Invalid LUKS type, only luks1 and luks2 are supported."));
ad2d76
 		return -EINVAL;
ad2d76
 	}
ad2d76
 
ad2d76
-- 
ad2d76
1.8.3.1
ad2d76