diff --git a/src/cryptsetup.c b/src/cryptsetup.c index 2308e3df..515da01a 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -2784,6 +2784,9 @@ static const char *verify_reencrypt(void) if (ARG_SET(OPT_REDUCE_DEVICE_SIZE_ID) && ARG_SET(OPT_DEVICE_SIZE_ID)) return _("Options --reduce-device-size and --data-size cannot be combined."); + if (isLUKS1(luksType(device_type)) && ARG_SET(OPT_ACTIVE_NAME_ID)) + return _("Option --active-name can be set only for LUKS2 device."); + return NULL; }