summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/nfs-utils
diff options
context:
space:
mode:
authorLi Wang <li.wang@windriver.com>2015-06-29 09:58:17 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-01 15:38:22 +0100
commit967aa21662930fe5584485d820eb7959a29815bb (patch)
treed782d743feef040c385d2f51f213dd94b0c4a186 /meta/recipes-connectivity/nfs-utils
parent0dbc895c58a1bb81467a20b154e068806278fc83 (diff)
downloadopenembedded-core-967aa21662930fe5584485d820eb7959a29815bb.tar.gz
openembedded-core-967aa21662930fe5584485d820eb7959a29815bb.tar.bz2
openembedded-core-967aa21662930fe5584485d820eb7959a29815bb.zip
nfs-utils: Reexport all directories when start
call "exportfs -r" to reexport all directories when start the nfsserver. This change does follow debian and nfs-utils stardard. Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
index 6e0df7e2ea..7ed93a59d4 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
@@ -107,6 +107,7 @@ stop_nfsd(){
#FIXME: need to create the /var/lib/nfs/... directories
case "$1" in
start)
+ exportfs -r
start_nfsd "$NFS_SERVERS"
start_mountd
test -r /etc/exports && exportfs -a;;