]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount: mount unit activated by automount unit should be only ordered against the...
authorFranck Bui <fbui@suse.com>
Wed, 1 Apr 2020 15:46:42 +0000 (17:46 +0200)
committerFranck Bui <fbui@suse.com>
Thu, 2 Apr 2020 08:56:30 +0000 (10:56 +0200)
commit457d65932b3832cc8fd103d09ffb3e7ea924d07c
tree44f15b56910d9e4a2759740f3973b03eff6b9f0c
parentad8f1b0f3601b423b3bad5fe8de667de531ce7c4
mount: mount unit activated by automount unit should be only ordered against the automount unit

Both fstab-generator and pid1 are duplicating the handling of
"Before=local-fs.target" dependency for mount units.

fstab-generator is correctly skipping this dep if the mount unit is activated
by an automount unit.

However the condition used by pid1 was incorrect and missed the case when a mount
unit uses "x-systemd.automount" since in this case the mount unit should be
(only) ordered against its automount unit counterpart instead.
src/core/mount.c