diff options
author | Li Wang <li.wang@windriver.com> | 2015-06-29 09:58:17 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-01 15:40:00 +0100 |
commit | 703108c98639746929eeb6c34e9e57a907dde110 (patch) | |
tree | aa6cc281d1433d2832c88f46bf3f1fa77b0e2ed2 /meta/recipes-connectivity | |
parent | 3c6ddc78d3ee96410b2a0c6b12fe3bd4ead27b0b (diff) | |
download | poky-703108c98639746929eeb6c34e9e57a907dde110.tar.gz |
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.
(From OE-Core rev: 967aa21662930fe5584485d820eb7959a29815bb)
Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver | 1 |
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(){ | |||
107 | #FIXME: need to create the /var/lib/nfs/... directories | 107 | #FIXME: need to create the /var/lib/nfs/... directories |
108 | case "$1" in | 108 | case "$1" in |
109 | start) | 109 | start) |
110 | exportfs -r | ||
110 | start_nfsd "$NFS_SERVERS" | 111 | start_nfsd "$NFS_SERVERS" |
111 | start_mountd | 112 | start_mountd |
112 | test -r /etc/exports && exportfs -a;; | 113 | test -r /etc/exports && exportfs -a;; |