Print device signatures before prompt in repair action.

This commit is contained in:
Ondrej Kozina
2018-07-09 13:26:16 +02:00
committed by Milan Broz
parent 43a1291f7c
commit 49279a3c19

View File

@@ -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)