mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-19 14:50:09 +01:00
Restrict --active-name to LUKS2 type only.
This commit is contained in:
committed by
Milan Broz
parent
a2f30ebd4c
commit
a55b0530a4
@@ -2784,6 +2784,9 @@ static const char *verify_reencrypt(void)
|
|||||||
if (ARG_SET(OPT_REDUCE_DEVICE_SIZE_ID) && ARG_SET(OPT_DEVICE_SIZE_ID))
|
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.");
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user