Blame SOURCES/nfs-utils-1.3.0-gssproxy.patch

4f2874
diff -up nfs-utils-1.3.0/systemd/auth-rpcgss-module.service.orig nfs-utils-1.3.0/systemd/auth-rpcgss-module.service
4f2874
--- nfs-utils-1.3.0/systemd/auth-rpcgss-module.service.orig	2014-09-30 14:51:14.000000000 -0400
4f2874
+++ nfs-utils-1.3.0/systemd/auth-rpcgss-module.service	2014-09-30 14:51:14.000000000 -0400
4f2874
@@ -0,0 +1,15 @@
4f2874
+# We want to start gss-proxy on kernels that support it and rpc.svcgssd
4f2874
+# on those that don't.  Those services check for support by checking
4f2874
+# for existence of the path /proc/net/rpc/use-gss-proxy.  Before they
4f2874
+# can perform that check, they need this module loaded.  (Unless
4f2874
+# rpcsec_gss support is built directly into the kernel, in which case this
4f2874
+# unit will fail.  But that's OK.)
4f2874
+[Unit]
4f2874
+Description=Kernel Module supporting RPCSEC_GSS
4f2874
+Before=gssproxy.service rpc-svcgssd.service rpc-gssd.service
4f2874
+Wants=gssproxy.service rpc-svcgssd.service rpc-gssd.service
4f2874
+ConditionPathExists=/etc/krb5.keytab
4f2874
+
4f2874
+[Service]
4f2874
+Type=oneshot
4f2874
+ExecStart=/sbin/modprobe -q auth_rpcgss
4f2874
diff -up nfs-utils-1.3.0/systemd/nfs-client.target.orig nfs-utils-1.3.0/systemd/nfs-client.target
4f2874
--- nfs-utils-1.3.0/systemd/nfs-client.target.orig	2014-09-30 14:51:14.000000000 -0400
4f2874
+++ nfs-utils-1.3.0/systemd/nfs-client.target	2014-09-30 14:51:55.000000000 -0400
4f2874
@@ -5,9 +5,12 @@ Wants=remote-fs-pre.target
4f2874
 
4f2874
 # Note: we don't "Wants=rpc-statd.service" as "mount.nfs" will arrange to
4f2874
 # start that on demand if needed.
4f2874
-Wants=rpc-gssd.service rpc-svcgssd.service
4f2874
 Wants=nfs-blkmap.service rpc-statd-notify.service
4f2874
-After=rpc-gssd.service rpc-svcgssd.service nfs-blkmap.service
4f2874
+After=nfs-blkmap.service
4f2874
+
4f2874
+# GSS services dependencies and ordering
4f2874
+Wants=auth-rpcgss-module.service
4f2874
+After=rpc-gssd.service rpc-svcgssd.service gssproxy.service
4f2874
 
4f2874
 [Install]
4f2874
 WantedBy=multi-user.target
4f2874
diff -up nfs-utils-1.3.0/systemd/nfs-server.service.orig nfs-utils-1.3.0/systemd/nfs-server.service
4f2874
--- nfs-utils-1.3.0/systemd/nfs-server.service.orig	2014-03-25 11:12:07.000000000 -0400
4f2874
+++ nfs-utils-1.3.0/systemd/nfs-server.service	2014-09-30 14:51:14.000000000 -0400
4f2874
@@ -2,14 +2,17 @@
4f2874
 Description=NFS server and services
4f2874
 Requires= network.target proc-fs-nfsd.mount rpcbind.target
4f2874
 Requires= nfs-mountd.service
4f2874
-Wants=rpc-statd.service nfs-idmapd.service rpc-gssd.service rpc-svcgssd.service
4f2874
+Wants=rpc-statd.service nfs-idmapd.service
4f2874
 Wants=rpc-statd-notify.service
4f2874
 
4f2874
 After= network.target proc-fs-nfsd.mount rpcbind.target nfs-mountd.service
4f2874
 After= nfs-idmapd.service rpc-statd.service
4f2874
-After= rpc-gssd.service rpc-svcgssd.service
4f2874
 Before= rpc-statd-notify.service
4f2874
 
4f2874
+# GSS services dependencies and ordering
4f2874
+Wants=auth-rpcgss-module.service
4f2874
+After=rpc-gssd.service gssproxy.service rpc-svcgssd.service
4f2874
+
4f2874
 Wants=nfs-config.service
4f2874
 After=nfs-config.service
4f2874