cryptsetup: fix nofail support

This was documented in the man page and supported in the generator,
but systemd-cryptestup itself would fail with this option.

systemd-cryptsetup should ignore 'nofail', as it does with 'noauto'.
This commit is contained in:
Tom Gundersen 2012-11-21 12:30:47 +01:00
parent cf37cd2f30
commit adc40dc2f6
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ static int parse_one_option(const char *option) {
assert(option);
/* Handled outside of this tool */
if (streq(option, "noauto"))
if (streq(option, "noauto") || streq(option, "nofail"))
return 0;
if (startswith(option, "cipher=")) {