From 49279a3c19fdcd75b76916274b059ec50b06f4d1 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Mon, 9 Jul 2018 13:26:16 +0200 Subject: [PATCH] Print device signatures before prompt in repair action. --- src/cryptsetup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cryptsetup.c b/src/cryptsetup.c index 8e6288a0..fc3481d7 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -870,6 +870,10 @@ static int action_luksRepair(void) goto out; } + r = tools_detect_signatures(action_argv[0], 1, NULL); + if (r < 0) + goto out; + r = yesDialog(_("Really try to repair LUKS device header?"), _("Operation aborted.\n")) ? 0 : -EINVAL; if (r == 0)