2020-11-09 19:47:29

by Steve Dickson

[permalink] [raw]
Subject: [PATCH] nfs-v4client.target: NFSv4 only client target.

To allow v4 only clients, create an systemd
nfs-client target that does not "Wants" a
rpc-statd notify

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1886634
Signed-off-by: Steve Dickson <[email protected]>
---
systemd/nfs-v4client.target | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 systemd/nfs-v4client.target

diff --git a/systemd/nfs-v4client.target b/systemd/nfs-v4client.target
new file mode 100644
index 0000000..3d1064e
--- /dev/null
+++ b/systemd/nfs-v4client.target
@@ -0,0 +1,12 @@
+[Unit]
+Description=NFS client services
+Before=remote-fs-pre.target
+Wants=remote-fs-pre.target
+
+# GSS services dependencies and ordering
+Wants=auth-rpcgss-module.service
+After=rpc-gssd.service rpc-svcgssd.service gssproxy.service
+
+[Install]
+WantedBy=multi-user.target
+WantedBy=remote-fs.target
--
2.26.2


2020-11-10 19:42:01

by Steve Dickson

[permalink] [raw]
Subject: Re: [PATCH] nfs-v4client.target: NFSv4 only client target.



On 11/9/20 2:47 PM, Steve Dickson wrote:
> To allow v4 only clients, create an systemd
> nfs-client target that does not "Wants" a
> rpc-statd notify
>
> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1886634
> Signed-off-by: Steve Dickson <[email protected]>
> ---
> systemd/nfs-v4client.target | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
> create mode 100644 systemd/nfs-v4client.target
Committed... (tag: nfs-utils-2-5-3-rc1)

steved.
>
> diff --git a/systemd/nfs-v4client.target b/systemd/nfs-v4client.target
> new file mode 100644
> index 0000000..3d1064e
> --- /dev/null
> +++ b/systemd/nfs-v4client.target
> @@ -0,0 +1,12 @@
> +[Unit]
> +Description=NFS client services
> +Before=remote-fs-pre.target
> +Wants=remote-fs-pre.target
> +
> +# GSS services dependencies and ordering
> +Wants=auth-rpcgss-module.service
> +After=rpc-gssd.service rpc-svcgssd.service gssproxy.service
> +
> +[Install]
> +WantedBy=multi-user.target
> +WantedBy=remote-fs.target
>