summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-24 14:02:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-24 14:03:10 +0100
commit723f2464f746624ece06caa9752910a52f290f95 (patch)
treeda4eeb8971effb6744210e42a2aff0758d1cbe6f /meta/recipes-connectivity
parent1a7593bcdaf8a8cf15259aee8a0e2686247f2987 (diff)
downloadopenembedded-core-contrib-723f2464f746624ece06caa9752910a52f290f95.tar.gz
openembedded-core-contrib-723f2464f746624ece06caa9752910a52f290f95.tar.bz2
openembedded-core-contrib-723f2464f746624ece06caa9752910a52f290f95.zip
nfs-utils: Improve handling when no exported fileysystems
Ensure /etc/exports exists and is readable before calling exportfs to avoid errors. 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/nfsserver2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
index d5e9c38a9c..0f5747cc6d 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
@@ -107,7 +107,7 @@ stop_nfsd(){
#FIXME: need to create the /var/lib/nfs/... directories
case "$1" in
start)
- exportfs -r
+ test -r /etc/exports && exportfs -r
start_nfsd "$NFS_SERVERS"
start_mountd
test -r /etc/exports && exportfs -a;;