]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/systemd.automount.xml
automount: fix handling of default dependencies for automount units
authorFranck Bui <fbui@suse.com>
Thu, 2 Apr 2020 08:52:24 +0000 (10:52 +0200)
committerFranck Bui <fbui@suse.com>
Thu, 9 Apr 2020 13:17:17 +0000 (15:17 +0200)
commitb3d7aef525dc1620a7948ffdbf3f36bfa3d5b5e8
tree8451c8fc2552ed451bdc8445e952a8fe3c350607
parent83cdc870949823b5b9fa04dd76e952d42faab0b1
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.
man/systemd.automount.xml
src/core/automount.c
src/fstab-generator/fstab-generator.c