cryptsetup: add keyfile-timeout to allow a keydev timeout and allow to fallback to a password if it fails.

This commit is contained in:
shinygold
2019-07-17 14:00:29 +02:00
parent 4e1334512d
commit 50d2eba27b
2 changed files with 89 additions and 35 deletions
+4 -1
View File
@@ -81,7 +81,10 @@ static int parse_one_option(const char *option) {
assert(option);
/* Handled outside of this tool */
if (STR_IN_SET(option, "noauto", "auto", "nofail", "fail", "_netdev"))
if (STR_IN_SET(option, "noauto", "auto", "nofail", "fail", "_netdev", "keyfile-timeout"))
return 0;
if (startswith(option, "keyfile-timeout="))
return 0;
if ((val = startswith(option, "cipher="))) {