On Sat, Apr 6, 2024 at 4:37 PM Steve Dickson <steved@xxxxxxxxxx> wrote: > > Hello, > > On 4/5/24 10:29 AM, Matt Turner wrote: > > Downstream bug: https://bugs.gentoo.org/928526 > > > > In Gentoo we allow disabling NFSv3 support, which entails nothing more > > than not installing `nfs-server.service`. This has uncovered an issue > > that many .service files reference `nfs-server.service` explicitly, > > making them unusable with `nfsv4-server.service`. > Very interesting... not supporting v3... Just curious as to why? I don't think there's a particularly compelling reason. I guess it lets you avoid a dependency on rpcbind. > >> server ~ # grep nfs-server.service $(qlist nfs-utils | grep service) > >> /usr/lib/systemd/system/rpc-statd-notify.service:After=nfs-server.service > >> /usr/lib/systemd/system/nfs-mountd.service:BindsTo=nfs-server.service > >> /usr/lib/systemd/system/rpc-svcgssd.service:PartOf=nfs-server.service > >> /usr/lib/systemd/system/fsidd.service:Before=nfs-mountd.service nfs-server.service > >> /usr/lib/systemd/system/fsidd.service:RequiredBy=nfs-mountd.service nfs-server.service > >> /usr/lib/systemd/system/nfs-idmapd.service:BindsTo=nfs-server.service > > > > The only service file that depends on nfsv4-server is nfsv4-exportd: > > > >> server ~ # grep nfsv4-server.service $(qlist nfs-utils | grep service) > >> /usr/lib/systemd/system/nfsv4-exportd.service:BindsTo=nfsv4-server.service > > > > How should `nfsv4-server.service` be used? > The idea was to make nfs-utils have a smaller footprint for containers. > No rpcbind, lockd, statd etc.. exportd is to replace mountd > and only accept v4 mounts. Seems like we would just need to modify the build system to not install `nfs-server.service` and other NFSv3-only service files and modify the remaining service files to reference nfsv4-server.service instead? > Unfortunately the idea of having a nfsv4 only server > did not go over well with upstream. Which upstream do you mean? nfs-utils, Linux kernel? > But, I will be more than willing to work with you to make it work. Thanks!