56601d6192
This brings numerous fixes, particularly to gssd and nfsdcltrack. It incorporates all the upstreamable patches we had: - Delete nfsdcltrack.sbin.patch - Delete start-statd.patch - 0001-nfs-client.target-Removed-a-ordering-cycle-with-nfs-.patch 0002-Centralize-dependencies-on-the-auth-unit.patch Patches from 1.3.2-rc, which look useful - Convert from /etc/init.d startup scripts to full systemd integration. The upstream standard names are "nfs-client" and "nfs-server" rather than "nfs" and "nfsserver", so local "nfs" "nfsserver" aliases are created and "rcXXX" links are provided for all 4. OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=134
63 lines
1.5 KiB
Bash
63 lines
1.5 KiB
Bash
#!/bin/sh
|
|
|
|
# extract configuration from /etc/sysconfig/nfs-utils and write
|
|
# environment to /run/sysconfig/nfs-utils to be used by systemd unit
|
|
# files.
|
|
# This script expects configuration as used by openSUSE-13.1 and later
|
|
#
|
|
|
|
nfs_config=/etc/sysconfig/nfs
|
|
if test -r $nfs_config; then
|
|
. $nfs_config
|
|
fi
|
|
|
|
pipefs=
|
|
if [ -n "$RPC_PIPEFS_DIR" -a "$RPC_PIPEFS_DIR" != "/var/lib/nfs/rpc_pipefs" ]; then
|
|
pipefs="-p /var/lib/nfs/rpc_pipefs"
|
|
fi
|
|
|
|
mountdport=
|
|
if [ -n "$MOUNTD_PORT" ]; then
|
|
mountdport="-p $MOUNTD_PORT"
|
|
fi
|
|
|
|
case $NFS_GSSD_AVOID_DNS in
|
|
[Nn]*) ignore_dns=-D ;;
|
|
[Yy]*) ignore_dns= ;;
|
|
* ) ignore_dns=-D
|
|
esac
|
|
|
|
version_params=
|
|
if [ "$NFS3_SERVER_SUPPORT" == "no" ]; then
|
|
version_params="--no-nfs-version 2 --no-nfs-version 3"
|
|
fi
|
|
if [ "$NFS4_SUPPORT" != "yes" ]; then
|
|
version_params="--no-nfs-version 4"
|
|
fi
|
|
if [ "$NFS4_SERVER_MINOR_VERSION" != "0" ]; then
|
|
version_params="$VERSION_PARAMS --nfs-version 4 --nfs-version 4.$NFS4_SERVER_MINOR_VERSION"
|
|
fi
|
|
|
|
if [ "$USE_KERNEL_NFSD_NUMBER" -gt 0 ]; then
|
|
threads=$USE_KERNEL_NFSD_NUMBER
|
|
else
|
|
threads=3
|
|
fi
|
|
|
|
case $NFS_GSSD_AVOID_DNS in
|
|
[Nn]*) ignore_dns=-D ;;
|
|
[Yy]*) ignore_dns= ;;
|
|
* ) ignore_dns=-D
|
|
esac
|
|
|
|
mkdir -p /run/sysconfig
|
|
{
|
|
echo "RPCIDMAPDARGS=$pipefs"
|
|
echo "RPCMOUNTDARGS=$mountdport $MOUNTD_OPTIONS $version_parms"
|
|
echo "RPCNFSDARGS=$NFSD_OPTIONS $version_params $threads"
|
|
echo "GSSDARGS=$ignore_dns $GSSD_OPTIONS $pipefs"
|
|
echo "SMNOTIFYARGS=$SM_NOTIFY_OPTIONS"
|
|
echo "STATDARGS=$STATD_OPTIONS"
|
|
echo "SVCGSSDARGS=$SVCGSSD_OPTIONS"
|
|
} > /run/sysconfig/nfs-utils
|