diff options
author | Franck Bui <fbui@suse.com> | 2020-04-02 10:52:24 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2020-04-09 15:17:17 +0200 |
commit | b3d7aef525dc1620a7948ffdbf3f36bfa3d5b5e8 (patch) | |
tree | 8451c8fc2552ed451bdc8445e952a8fe3c350607 /man/systemd.automount.xml | |
parent | mount: let pid1 alone handle the default dependencies for mount units (diff) | |
download | systemd-b3d7aef525dc1620a7948ffdbf3f36bfa3d5b5e8.tar.xz systemd-b3d7aef525dc1620a7948ffdbf3f36bfa3d5b5e8.zip |
automount: fix handling of default dependencies for automount units
First After=local-fs-pre.target wasn't described in the man page although it's
part of the default dependencies automatically set by pid1.
Secondly, Before=local-fs.target was only set if the automount unit was
generated from the fstab-generator because the dep was explicitly
generated. It was also not documented as a default dependency.
Fix it by managing the dep from pid1 instead.
Diffstat (limited to 'man/systemd.automount.xml')
-rw-r--r-- | man/systemd.automount.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/man/systemd.automount.xml b/man/systemd.automount.xml index f2ed761021..35690fd22a 100644 --- a/man/systemd.automount.xml +++ b/man/systemd.automount.xml @@ -86,6 +86,10 @@ <listitem><para>Automount units acquire automatic <varname>Before=</varname> and <varname>Conflicts=</varname> on <filename>umount.target</filename> in order to be stopped during shutdown.</para></listitem> + + <listitem><para>Automount units 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>.</para></listitem> </itemizedlist> </refsect2> </refsect1> |