From 99c4c3adbf841e972f8ef5cc9f0cd4e60f6e8850 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Sun, 17 Apr 2022 13:37:44 +0200 Subject: [PATCH] Skip question if batch mode is set for volume key bitlk dump. Other formats use the same logic. --- src/cryptsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptsetup.c b/src/cryptsetup.c index 46748aae..61b32b0b 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -576,7 +576,7 @@ static int bitlkDump_with_volume_key(struct crypt_device *cd) unsigned i; int r; - if (!yesDialog( + if (!ARG_SET(OPT_BATCH_MODE_ID) && !yesDialog( _("The header dump with volume key is sensitive information\n" "that allows access to encrypted partition without a passphrase.\n" "This dump should be stored encrypted in a safe place."),