From 06fd461bd8499ed3baf0bba70b79e57cebe012f3 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Fri, 15 Oct 2021 16:06:14 +0200 Subject: [PATCH] Add --new alias for --encrypt parameter. To be compatible with cryptsetup-reencrypt utility. --- src/cryptsetup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cryptsetup.c b/src/cryptsetup.c index a4e3025d..1601932c 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -2824,6 +2824,9 @@ static void basic_options_cb(poptContext popt_context, _("Key size must be a multiple of 8 bits"), poptGetInvocationName(popt_context)); break; + case OPT_NEW_ID: + ARG_SET_TRUE(OPT_ENCRYPT_ID); + break; case OPT_REDUCE_DEVICE_SIZE_ID: if (ARG_UINT64(OPT_REDUCE_DEVICE_SIZE_ID) > 1024 * 1024 * 1024) usage(popt_context, EXIT_FAILURE, _("Maximum device reduce size is 1 GiB."),