This commit is contained in:
parent
068502af22
commit
92c20eda49
3
modprobe.nfs-utils
Normal file
3
modprobe.nfs-utils
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
install sunrpc /sbin/modprobe --ignore-install sunrpc ; grep '^sunrpc' /etc/sysctl.conf | sysctl -q -e -n -p -
|
||||||
|
install lockd /sbin/modprobe --ignore-install lockd ; grep '^fs.nfs.n.m' /etc/sysctl.conf | sysctl -q -e -n -p -
|
||||||
|
install nfs /sbin/modprobe --ignore-install nfs ; grep -E '^fs.nfs.(nfs|idmap)' /etc/sysctl.conf | sysctl -q -e -n -p -
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 14 03:19:34 CET 2008 - nfbrown@suse.de
|
||||||
|
|
||||||
|
- nfsserver.init
|
||||||
|
* don't set version if nfsd already running.
|
||||||
|
doing that causes unhelpful error when trying
|
||||||
|
to start nfsserver when it is already running.
|
||||||
|
(bnc#427330)
|
||||||
|
- modprobe.nfs-utils
|
||||||
|
* arrange that when various nfs modules are loaded
|
||||||
|
the relevant values from /etc/sysctl.conf are set
|
||||||
|
(bnc#431306, bnc#443118)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 7 04:32:51 CET 2008 - nfbrown@suse.de
|
Fri Nov 7 04:32:51 CET 2008 - nfbrown@suse.de
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ BuildRequires: libevent
|
|||||||
Url: http://nfs.sourceforge.net
|
Url: http://nfs.sourceforge.net
|
||||||
Summary: Support Utilities for Kernel nfsd
|
Summary: Support Utilities for Kernel nfsd
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 9
|
Release: 10
|
||||||
Group: Productivity/Networking/NFS
|
Group: Productivity/Networking/NFS
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -45,6 +45,7 @@ Source7: fw-client
|
|||||||
Source8: fw-server
|
Source8: fw-server
|
||||||
Source9: mkinitrd-setup.sh
|
Source9: mkinitrd-setup.sh
|
||||||
Source10: mkinitrd-boot.sh
|
Source10: mkinitrd-boot.sh
|
||||||
|
Source11: modprobe.nfs-utils
|
||||||
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
||||||
Patch1: nfs-utils-1.1.2-try-before-mount.patch
|
Patch1: nfs-utils-1.1.2-try-before-mount.patch
|
||||||
Patch2: nfs-utils-1.1.2-connect-UDP.patch
|
Patch2: nfs-utils-1.1.2-connect-UDP.patch
|
||||||
@ -177,6 +178,8 @@ install -m 0644 %{SOURCE8} ${RPM_BUILD_ROOT}/etc/sysconfig/SuSEfirewall2.d/servi
|
|||||||
install -d $RPM_BUILD_ROOT/lib/mkinitrd/scripts
|
install -d $RPM_BUILD_ROOT/lib/mkinitrd/scripts
|
||||||
install -m 755 %{S:9} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/setup-nfs.sh
|
install -m 755 %{S:9} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/setup-nfs.sh
|
||||||
install -m 755 %{S:10} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-nfs.sh
|
install -m 755 %{S:10} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-nfs.sh
|
||||||
|
install -d $RPM_BUILD_ROOT/etc/modprobe.d
|
||||||
|
install -m 644 ${S:11} $RPM_BUILD_ROOT/etc/modprobe.d/nfs-utils
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -210,6 +213,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config /etc/init.d/nfs
|
%config /etc/init.d/nfs
|
||||||
%config /etc/idmapd.conf
|
%config /etc/idmapd.conf
|
||||||
|
%dir /etc/modprobe.d
|
||||||
|
/etc/modprobe.d/nfs-utils
|
||||||
%dir /lib/mkinitrd
|
%dir /lib/mkinitrd
|
||||||
%dir /lib/mkinitrd/scripts
|
%dir /lib/mkinitrd/scripts
|
||||||
/lib/mkinitrd/scripts/setup-nfs.sh
|
/lib/mkinitrd/scripts/setup-nfs.sh
|
||||||
@ -281,6 +286,16 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc nfs/*.html nfs/*.ps linux-nfs/* README.NFSv4
|
%doc nfs/*.html nfs/*.ps linux-nfs/* README.NFSv4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 14 2008 nfbrown@suse.de
|
||||||
|
- nfsserver.init
|
||||||
|
* don't set version if nfsd already running.
|
||||||
|
doing that causes unhelpful error when trying
|
||||||
|
to start nfsserver when it is already running.
|
||||||
|
(bnc#427330)
|
||||||
|
- modprobe.nfs-utils
|
||||||
|
* arrange that when various nfs modules are loaded
|
||||||
|
the relevant values from /etc/sysctl.conf are set
|
||||||
|
(bnc#431306, bnc#443118)
|
||||||
* Fri Nov 07 2008 nfbrown@suse.de
|
* Fri Nov 07 2008 nfbrown@suse.de
|
||||||
- nfs.init
|
- nfs.init
|
||||||
* fix typo in handling of "init.d/nfs status"
|
* fix typo in handling of "init.d/nfs status"
|
||||||
|
@ -167,12 +167,15 @@ case "$1" in
|
|||||||
rc_status
|
rc_status
|
||||||
fi
|
fi
|
||||||
if [ "$NFS4_SUPPORT" = "yes" ]; then
|
if [ "$NFS4_SUPPORT" = "yes" ]; then
|
||||||
echo "+2 +3 +4" > /proc/fs/nfsd/versions
|
VERSION_LIST="+2 +3 +4"
|
||||||
VERSION_PARAMS=""
|
VERSION_PARAMS=""
|
||||||
else
|
else
|
||||||
echo "+2 +3 -4" > /proc/fs/nfsd/versions
|
VERSION_LIST="+2 +3 -4"
|
||||||
VERSION_PARAMS="--no-nfs-version 4"
|
VERSION_PARAMS="--no-nfs-version 4"
|
||||||
fi
|
fi
|
||||||
|
if [ " `cat /proc/fs/nfsd/threads`" = " 0" ]; then
|
||||||
|
echo $VERSION_LIST > /proc/fs/nfsd/versions
|
||||||
|
fi
|
||||||
nfs4_bind_mounts
|
nfs4_bind_mounts
|
||||||
# svcgssd; idmapd
|
# svcgssd; idmapd
|
||||||
if [ "$NEED_SVCGSSD" = yes ]; then
|
if [ "$NEED_SVCGSSD" = yes ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user