Blame SOURCES/autofs-5.1.3-fix-mount_nfs-blocks-on-first-mount.patch

603f99
autofs-5.1.3 - fix mount.nfs blocks on first mount
603f99
603f99
From: Ian Kent <raven@themaw.net>
603f99
603f99
The first time an NFS mount is tried mount.nfs tries to start rpc.statd
603f99
using systemctl. If /usr/local is being used to provide automounts in
603f99
that directory the first mount will hang becuase some directories under
603f99
/usr/local are included in the path used by systemctl.
603f99
603f99
Add rpc-statd.service (and for good measure rpcbind.service) to the
603f99
autofs Wants line in the unit file to work around this.
603f99
603f99
Signed-off-by: Ian Kent <raven@themaw.net>
603f99
---
603f99
 CHANGELOG                 |    1 +
603f99
 samples/autofs.service.in |    2 +-
603f99
 2 files changed, 2 insertions(+), 1 deletion(-)
603f99
603f99
--- autofs-5.0.7.orig/CHANGELOG
603f99
+++ autofs-5.0.7/CHANGELOG
603f99
@@ -252,6 +252,7 @@
603f99
 - add congigure option for limiting getgrgid_r() stack usage.
603f99
 - fix unset tsd group name handling.
603f99
 - set systemd KillMode to process.
603f99
+- fix mount.nfs blocks on first mount.
603f99
 
603f99
 25/07/2012 autofs-5.0.7
603f99
 =======================
603f99
--- autofs-5.0.7.orig/samples/autofs.service.in
603f99
+++ autofs-5.0.7/samples/autofs.service.in
603f99
@@ -1,7 +1,7 @@
603f99
 [Unit]
603f99
 Description=Automounts filesystems on demand
603f99
 After=network.target ypbind.service sssd.service network-online.target remote-fs.target
603f99
-Wants=network-online.target
603f99
+Wants=network-online.target rpc-statd.service rpcbind.service
603f99
 
603f99
 [Service]
603f99
 Type=forking