summaryrefslogtreecommitdiffstats
path: root/man/systemd.mount.xml
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-12-01 12:32:45 +0100
committerMike Yuan <me@yhndnzj.com>2023-12-11 17:34:32 +0100
commit39a4c452d2ab1de2779061f2a81c7b5ff59addd0 (patch)
tree1a22da15a7f450c79f6e1f10baad9a3712386b6c /man/systemd.mount.xml
parentman/systemd.mount: update implicit deps on device unit (diff)
downloadsystemd-39a4c452d2ab1de2779061f2a81c7b5ff59addd0.tar.xz
systemd-39a4c452d2ab1de2779061f2a81c7b5ff59addd0.zip
fstab-generator: disable default deps if x-systemd.{wanted,required}-by= is used
Fixes #30273
Diffstat (limited to 'man/systemd.mount.xml')
-rw-r--r--man/systemd.mount.xml34
1 files changed, 18 insertions, 16 deletions
diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml
index 8b7f5be8c4..b8d4f37281 100644
--- a/man/systemd.mount.xml
+++ b/man/systemd.mount.xml
@@ -134,15 +134,17 @@
<listitem><para>Mount units referring to local file systems automatically gain
an <varname>After=</varname> dependency on <filename>local-fs-pre.target</filename>, and a
- <varname>Before=</varname> dependency on <filename>local-fs.target</filename> unless
- <option>nofail</option> mount option is set.</para></listitem>
-
- <listitem><para>Network mount units
- automatically acquire <varname>After=</varname> dependencies on <filename>remote-fs-pre.target</filename>,
- <filename>network.target</filename> and <filename>network-online.target</filename>, and gain a
- <varname>Before=</varname> dependency on <filename>remote-fs.target</filename> unless
- <option>nofail</option> mount option is set. Towards the latter a
- <varname>Wants=</varname> unit is added as well.</para></listitem>
+ <varname>Before=</varname> dependency on <filename>local-fs.target</filename> unless one or more
+ mount options among <option>nofail</option>, <option>x-systemd.wanted-by=</option>,
+ and <option>x-systemd.required-by=</option> is set. See below for detailed information.
+ </para></listitem>
+
+ <listitem><para>Network mount units automatically acquire <varname>After=</varname> dependencies on
+ <filename>remote-fs-pre.target</filename>, <filename>network.target</filename>,
+ plus <varname>After=</varname> and <varname>Wants=</varname> dependencies on <filename>network-online.target</filename>,
+ and a <varname>Before=</varname> dependency on <filename>remote-fs.target</filename>, unless
+ one or more mount options among <option>nofail</option>, <option>x-systemd.wanted-by=</option>,
+ and <option>x-systemd.required-by=</option> is set.</para></listitem>
</itemizedlist>
<para>Mount units referring to local and network file systems are distinguished by their file system type
@@ -240,13 +242,13 @@
<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
+ <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 default dependencies (see above) other than <filename>umount.target</filename>
+ on the created mount unit, e.g. <filename>local-fs.target</filename>, are not automatically created.
+ Hence it is likely that some ordering dependencies need to be set up manually through
+ <option>x-systemd.before=</option> and <option>x-systemd.after=</option>. See <varname>WantedBy=</varname>
+ and <varname>RequiredBy=</varname> in
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for details.</para>