mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
nfs-utils: add NFSv4-only option to slim down two NFSv3-related services
This commit is contained in:
parent
4283b67465
commit
45072fccfe
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue