mirror of
https://github.com/systemd/systemd.git
synced 2026-08-07 08:30:57 +00:00
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:
@@ -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=")) {
|
||||
|
||||
Reference in New Issue
Block a user