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:
parent
cf37cd2f30
commit
adc40dc2f6
|
@ -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=")) {
|
||||
|
|
Loading…
Reference in New Issue