Skip question if batch mode is set for volume key bitlk dump.

Other formats use the same logic.
This commit is contained in:
Milan Broz
2022-04-17 13:37:44 +02:00
parent f34b3b27ec
commit 99c4c3adbf

View File

@@ -576,7 +576,7 @@ static int bitlkDump_with_volume_key(struct crypt_device *cd)
unsigned i; unsigned i;
int r; int r;
if (!yesDialog( if (!ARG_SET(OPT_BATCH_MODE_ID) && !yesDialog(
_("The header dump with volume key is sensitive information\n" _("The header dump with volume key is sensitive information\n"
"that allows access to encrypted partition without a passphrase.\n" "that allows access to encrypted partition without a passphrase.\n"
"This dump should be stored encrypted in a safe place."), "This dump should be stored encrypted in a safe place."),