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

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