Description of problem:
x-systemd.automount entry in /etc/fstab stopped working after update from 7.4 to 7.5 in case when mount point does.nt exist.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
# echo tmpfs /mnt/auto.test tmpfs defaults,noauto,x-systemd.automount 0 0 >> /etc/fstab
# systemctl daemon-reload
# rm -rf /mnt/auto.test
# systemctl start mnt-auto.test.automount
Job for mnt-auto.test.automount failed. See "systemctl status mnt-auto.test.automount" and "journalctl -xe" for details.
# systemctl status mnt-auto.test.automount
Loaded: loaded (/etc/fstab; bad; vendor preset: disabled)
Active: inactive (dead)
May 29 13:06:03 vm systemd: Path /mnt/auto.test is already a mount point, refusing start for mnt-auto.test.automount
May 29 13:06:03 vm systemd: Failed to set up automount mnt-auto.test.automount.
mnt-auto.test.automount unit is in failed state.
mnt-auto.test.automount is active.
Worked fine in 7.4, seems to become broken in systemd from 7.5.
Rough bisection discovered that everything works fine again with the following patches disabled in systemd:
(likely this is a bit overkill, at least the problem still exists if we disable only 601 and 609).
I can confirm this is broken in 7.5 also. all my automounts nolonger work.
fixed by https://github.com/systemd/systemd/commit/b604cb9bf6a14d12589e85b82f3f59db93ea0029
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/260 -> post
fix merged to github master branch -> https://github.com/systemd-rhel/rhel-7/pull/26 -> post
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.