Commit c116480f authored by Ondrej Balaz's avatar Ondrej Balaz Committed by Michael Stapelberg

Recognize discard option in /etc/crypttab.

Signed-off-by: default avatarOndrej Balaz <>
parent a9589a24
......@@ -117,7 +117,7 @@ static int parse_one_option(const char *option) {
opt_readonly = true;
else if (streq(option, "verify"))
opt_verify = true;
else if (streq(option, "allow-discards"))
else if (streq(option, "allow-discards") || streq(option, "discard"))
opt_discards = true;
else if (streq(option, "luks"))
opt_type = CRYPT_LUKS1;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment