Skip to content

Commit

Permalink
storage: Allow both "readonly" and "read-only" spelling in crypttab
Browse files Browse the repository at this point in the history
The man page mentions both, so let's not get confused when someone
uses "read-only".
  • Loading branch information
mvollmer authored and jelly committed Mar 26, 2024
1 parent 1f5724d commit c3f99ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storaged/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export function set_crypto_options(block, readonly, auto, nofail, netdev) {
const opts = config.options ? parse_options(decode_filename(config.options.v)) : [];
if (readonly !== null) {
extract_option(opts, "readonly");
extract_option(opts, "read-only");
if (readonly)
opts.push("readonly");
}
Expand Down

0 comments on commit c3f99ce

Please sign in to comment.