summaryrefslogtreecommitdiff
path: root/man/systemd.mount.xml
diff options
context:
space:
mode:
authorAntonio Russo <antonio.e.russo@gmail.com>2020-01-18 14:14:58 -0700
committerAntonio Russo <antonio.e.russo@gmail.com>2020-01-21 06:54:34 -0700
commitbe02c1cf426ded282152592eb5320a1b2601e818 (patch)
tree49fb3a7b0466630fadcb45192816aac7f0378c6d /man/systemd.mount.xml
parent81248e7f3e83a24cbbc8d2a09a01abf55e81bcda (diff)
downloadsystemd-be02c1cf426ded282152592eb5320a1b2601e818.tar.gz
Implemented x-systemd.{required,wanted}-by= options
Teaches systemd-fstab-generator these two unit options, creating appropriate dependencies on the generated .mount units. When used, they override any other automatically generated dependencies, such as local-fs.target, and are NOT suppressed by noauto. The new options are ignored for /, in the same way that noauto is ignored. Fixes: #14380 Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Diffstat (limited to 'man/systemd.mount.xml')
-rw-r--r--man/systemd.mount.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml
index 6ee9d47db2..d775d74053 100644
--- a/man/systemd.mount.xml
+++ b/man/systemd.mount.xml
@@ -227,6 +227,21 @@
</varlistentry>
<varlistentry>
+ <term><option>x-systemd.wanted-by=</option></term>
+ <term><option>x-systemd.required-by=</option></term>
+
+ <listitem><para>In the created mount unit, configures a
+ <varname>WantedBy=</varname> or <varname>RequiredBy=</varname>
+ dependency on another unit. This option may be
+ specified more than once. If this is specified, the normal
+ automatic dependencies on the created mount unit, e.g.,
+ <filename>local-fs.target</filename>, are not automatically
+ created. See <varname>WantedBy=</varname> and <varname>RequiredBy=</varname> in
+ <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+ for details.</para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>x-systemd.requires-mounts-for=</option></term>
<listitem><para>Configures a