X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcryptsetup.c;h=c007b87c7ab0c0c67174c54dd728c79ae01763df;hp=91a4436ae1531f75bb75230817ca35dfba63f20a;hb=1fc7633598538fc5005e679da9ae5ce042376029;hpb=e2d480b9d192cef125a531aa5eec574827c69b44 diff --git a/src/cryptsetup.c b/src/cryptsetup.c index 91a4436ae..c007b87c7 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -37,6 +37,18 @@ static bool opt_readonly = false; static bool opt_verify = false; static usec_t opt_timeout = 0; +/* Options Debian's crypttab knows we don't: + + offset= + skip= + precheck= + check= + checkargs= + noearly= + loud= + keyscript= +*/ + static int parse_one_option(const char *option) { assert(option); @@ -155,7 +167,10 @@ int main(int argc, char *argv[]) { goto finish; } - if (argc >= 5 && argv[4][0] && !streq(argv[4], "-")) { + if (argc >= 5 && + argv[4][0] && + !streq(argv[4], "-") && + !streq(argv[4], "none")) { if (!path_is_absolute(argv[4])) log_error("Password file path %s is not absolute. Ignoring.", argv[4]);