Accepting request 158082 from Base:System

Updated nfsserver.init and sysconfig.nfs to add support for setting rpc.mountd options in addition to the port. While it's possible to set these by setting the port and adding them after, this is a nicer implementation.
 (forwarded request 157565 from deadpoint)

OBS-URL: https://build.opensuse.org/request/show/158082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=101
This commit is contained in:
Stephan Kulow 2013-03-10 07:35:57 +00:00 committed by Git OBS Bridge
commit 27554f60d9
4 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 6 20:04:55 UTC 2013 - darin@darins.net
- nfsserver.init,sysconfig.nfs - Add support for setting rpc.mountd
options.
-------------------------------------------------------------------
Wed Nov 28 00:08:55 UTC 2012 - nfbrown@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package nfs-utils
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -215,9 +215,9 @@ case "$1" in
# rpc.mountd
echo -n " mountd"
if [ -n "$MOUNTD_PORT" ] ; then
startproc /usr/sbin/rpc.mountd -p $MOUNTD_PORT $VERSION_PARAMS
startproc /usr/sbin/rpc.mountd -p $MOUNTD_PORT $MOUNTD_OPTIONS $VERSION_PARAMS
else
startproc /usr/sbin/rpc.mountd $VERSION_PARAMS
startproc /usr/sbin/rpc.mountd $MOUNTD_OPTIONS $VERSION_PARAMS
fi || {
rc_status -v
rc_exit

View File

@ -132,3 +132,13 @@ SVCGSSD_OPTIONS=""
# This setting allows extra options to be specified for NFSD, such as
# -H <shared_hostname> in a high-availability configuration.
NFSD_OPTIONS=""
## Path: Network/File systems/NFS server
## Description: Extra options for mountd
## Type: string
## Default: ""
#
# This setting allows extra options to be specified for rpc.mountd,
# such as --manage-gids.
MOUNTD_OPTIONS=""