1 |
vapier 14/06/20 06:21:22 |
2 |
|
3 |
Modified: nfs.initd |
4 |
Log: |
5 |
Drop rpc_pipefs creation as the rpc.pipefs.initd takes care of it. Switch to `mountinfo` to see if nfsd is already mounted. |
6 |
|
7 |
Revision Changes Path |
8 |
1.28 net-fs/nfs-utils/files/nfs.initd |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.28&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.28&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?r1=1.27&r2=1.28 |
13 |
|
14 |
Index: nfs.initd |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v |
17 |
retrieving revision 1.27 |
18 |
retrieving revision 1.28 |
19 |
diff -u -r1.27 -r1.28 |
20 |
--- nfs.initd 24 Mar 2013 19:37:22 -0000 1.27 |
21 |
+++ nfs.initd 20 Jun 2014 06:21:22 -0000 1.28 |
22 |
@@ -1,7 +1,7 @@ |
23 |
#!/sbin/runscript |
24 |
-# Copyright 1999-2013 Gentoo Foundation |
25 |
+# Copyright 1999-2014 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.27 2013/03/24 19:37:22 vapier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.28 2014/06/20 06:21:22 vapier Exp $ |
29 |
|
30 |
extra_started_commands="reload" |
31 |
|
32 |
@@ -36,7 +36,7 @@ |
33 |
|
34 |
mkdir_nfsdirs() { |
35 |
local d |
36 |
- for d in rpc_pipefs v4recovery v4root ; do |
37 |
+ for d in v4recovery v4root ; do |
38 |
d="/var/lib/nfs/${d}" |
39 |
[ ! -d "${d}" ] && mkdir -p "${d}" |
40 |
done |
41 |
@@ -62,7 +62,7 @@ |
42 |
|
43 |
# This is the new "kernel 2.6 way" to handle the exports file |
44 |
if grep -qs nfsd /proc/filesystems ; then |
45 |
- if ! grep -qs "nfsd /proc/fs/nfsd" /proc/mounts ; then |
46 |
+ if ! mountinfo -q /proc/fs/nfsd ; then |
47 |
ebegin "Mounting nfsd filesystem in /proc" |
48 |
mount -t nfsd -o nodev,noexec,nosuid nfsd /proc/fs/nfsd |
49 |
eend $? |