I found one further issue which is related to #738063. I wanted to limit the exports to supporting version 2 and 3.
I first set RPCMOUNTDOPTS="--manage-gids --no-nfs-version 4" as explained in /etc/default/nfs-kernel-server. But I found I also needed add the following to that file: RPCNFSDPRIORITY=0 + # other options for nfsd + # To disable NFSv4 on the server, specify '--no-nfs-version 4' here also + RPCNFSDOPTS="--no-nfs-version 4" I discovered this by reading the source of the new script /usr/lib/systemd/scripts/nfs-utils_env.sh which constructs the RPCNFSDARGS variable used in the /lib/systemd/system/nfs-server.service file. If you upload a new version of this package, could you add an empty definition of RPCNFSDOPTS to /etc/default/nfs-kernel-server, so people can find it? Users of the init script would also benefit from this change. Thanks Vince