nfs-utils: add NFSv4-only option to slim down two NFSv3-related services

This commit is contained in:
Mateusz Sylwestrzak 2025-07-27 16:41:12 +02:00 committed by Duncan Overbruck
parent 4283b67465
commit 45072fccfe
2 changed files with 6 additions and 4 deletions

View file

@ -1,15 +1,17 @@
#!/bin/sh
exec 2>&1
# Make sure the statd service is running.
sv check statd >/dev/null || exit 1
# This was probably only used correctly to set PROCESSES
[ -r /etc/conf.d/nfs-server.conf ] && . /etc/conf.d/nfs-server.conf
# Settings in ./conf should be preferred over /etc/conf.d/nfs-server.conf
[ -r ./conf ] && . ./conf
# If this var is set, there's no need to enable statd and rpcbind services as they pertain to NFSv3
if [ -z "$NFSV4_ONLY" ]; then
sv check statd >/dev/null || exit 1
fi
# Check/mount rpc_pipefs (loads sunrpc kernel module)
if ! mountpoint -q /var/lib/nfs/rpc_pipefs; then
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs -o defaults || exit 1

View file

@ -1,7 +1,7 @@
# Template file for 'nfs-utils'
pkgname=nfs-utils
version=2.8.3
revision=2
revision=3
build_style=gnu-configure
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
--with-statedir=/var/lib/nfs --enable-libmount-mount --enable-svcgss