summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorAntonio Russo <antonio.e.russo@gmail.com>2020-01-18 22:14:58 +0100
committerAntonio Russo <antonio.e.russo@gmail.com>2020-01-21 14:54:34 +0100
commitbe02c1cf426ded282152592eb5320a1b2601e818 (patch)
tree49fb3a7b0466630fadcb45192816aac7f0378c6d /man
parentDocumentation update for x-systemd.{before,after} (diff)
downloadsystemd-be02c1cf426ded282152592eb5320a1b2601e818.tar.xz
systemd-be02c1cf426ded282152592eb5320a1b2601e818.zip
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')
-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