From 967aa21662930fe5584485d820eb7959a29815bb Mon Sep 17 00:00:00 2001
From: Li Wang
Date: Mon, 29 Jun 2015 09:58:17 +0800
Subject: 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
Signed-off-by: Richard Purdie
---
meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver | 1 +
1 file changed, 1 insertion(+)
(limited to 'meta')
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;;
--
cgit v1.2.3