replace portmap with rpcbind.

Rpcbind has more features, like ipv6 support and nfs4 support;
Redhat, Fedora, debian, Ubuntu are using rpcbind by default.

(From OE-Core rev: 86ec57e2837465954f51fc55fce990b5ec6b1063)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Roy.Li 2012-12-24 09:02:04 +08:00 committed by Richard Purdie
parent 7f221da2a3
commit 9a1c99916b
3 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
# util-linux for libblkid # util-linux for libblkid
DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers" DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
RDEPENDS_${PN} = "portmap" RDEPENDS_${PN} = "rpcbind"
RRECOMMENDS_${PN} = "kernel-module-nfsd" RRECOMMENDS_${PN} = "kernel-module-nfsd"
PR = "r5" PR = "r5"

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: mountnfs # Provides: mountnfs
# Required-Start: $local_fs $network $portmap # Required-Start: $local_fs $network $rpcbind
# Required-Stop: # Required-Stop:
# Default-Start: S # Default-Start: S
# Default-Stop: # Default-Stop:
@ -17,9 +17,9 @@ test -f /etc/fstab && (
# #
# Read through fstab line by line. If it is NFS, set the flag # Read through fstab line by line. If it is NFS, set the flag
# for mounting NFS filesystems. If any NFS partition is found and it # for mounting NFS filesystems. If any NFS partition is found and it
# not mounted with the nolock option, we start the portmapper. # not mounted with the nolock option, we start the rpcbind.
# #
portmap=no rpcbind=no
mount_nfs=no mount_nfs=no
mount_smb=no mount_smb=no
mount_ncp=no mount_ncp=no
@ -45,7 +45,7 @@ do
*nolock*) *nolock*)
;; ;;
*) *)
portmap=yes rpcbind=yes
;; ;;
esac esac
fi fi
@ -65,12 +65,12 @@ done
exec 0>&1 exec 0>&1
if test "$portmap" = yes if test "$rpcbind" = yes
then then
if test -x /sbin/portmap if test -x /usr/sbin/rpcbind
then then
echo -n "Starting portmapper... " echo -n "Starting rpcbind... "
start-stop-daemon --start --quiet --exec /sbin/portmap start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
sleep 2 sleep 2
fi fi
fi fi

View File

@ -331,7 +331,7 @@ RRECOMMENDS_packagegroup-base-cramfs = "\
# #
SUMMARY_packagegroup-base-nfs = "NFS network filesystem support" SUMMARY_packagegroup-base-nfs = "NFS network filesystem support"
RDEPENDS_packagegroup-base-nfs = "\ RDEPENDS_packagegroup-base-nfs = "\
portmap" rpcbind"
RRECOMMENDS_packagegroup-base-nfs = "\ RRECOMMENDS_packagegroup-base-nfs = "\
kernel-module-nfs " kernel-module-nfs "