summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2020-05-01 10:27:06 +0200
committerMartin Hundebøll <martin@geanix.com>2020-05-20 14:26:04 +0200
commit75f4bd7fd0a28e4080a3f0c05a574820dc9411ac (patch)
tree6254956093c2b594dadb92d730199e7986a99fa5
parentmount: add ReadWriteOnly property to fail on read-only mounts (diff)
downloadsystemd-75f4bd7fd0a28e4080a3f0c05a574820dc9411ac.tar.xz
systemd-75f4bd7fd0a28e4080a3f0c05a574820dc9411ac.zip
man: document ReadWriteOnly property for mount units
-rw-r--r--docs/TRANSIENT-SETTINGS.md1
-rw-r--r--man/systemd.mount.xml13
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/TRANSIENT-SETTINGS.md b/docs/TRANSIENT-SETTINGS.md
index d5a8046676..d9b1c20c77 100644
--- a/docs/TRANSIENT-SETTINGS.md
+++ b/docs/TRANSIENT-SETTINGS.md
@@ -332,6 +332,7 @@ All mount unit settings are available to transient units:
✓ SloppyOptions=
✓ LazyUnmount=
✓ ForceUnmount=
+✓ ReadWriteOnly=
```
## Automount Unit Settings
diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml
index d775d74053..d18773663f 100644
--- a/man/systemd.mount.xml
+++ b/man/systemd.mount.xml
@@ -498,6 +498,19 @@
</varlistentry>
<varlistentry>
+ <term><varname>ReadWriteOnly=</varname></term>
+
+ <listitem><para>Takes a boolean argument. If false, a mount
+ point that shall be mounted read-write but cannot be mounted
+ so is retried to be mounted read-only. If true the operation
+ will fail immediately after the read-write mount attempt did
+ not succeed. This corresponds with
+ <citerefentry project='man-pages'><refentrytitle>mount</refentrytitle><manvolnum>8</manvolnum></citerefentry>'s
+ <parameter>-w</parameter> switch. Defaults to
+ off.</para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><varname>ForceUnmount=</varname></term>
<listitem><para>Takes a boolean argument. If true, force an