diff options
-rw-r--r-- | man/crypttab.xml | 2 | ||||
-rw-r--r-- | src/cryptsetup/cryptsetup.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/man/crypttab.xml b/man/crypttab.xml index 2379fc0827..f976bdaa25 100644 --- a/man/crypttab.xml +++ b/man/crypttab.xml @@ -182,7 +182,7 @@ </varlistentry> <varlistentry> - <term><varname>read-only</varname></term> + <term><varname>read-only</varname></term><term><varname>readonly</varname></term> <listitem><para>Set up the encrypted block device in read-only diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index f33284370c..a8cdf10177 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -111,7 +111,7 @@ static int parse_one_option(const char *option) { return 0; } - } else if (streq(option, "readonly")) + } else if (streq(option, "readonly") || streq(option, "read-only")) opt_readonly = true; else if (streq(option, "verify")) opt_verify = true; |