diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-24 14:02:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-28 05:31:42 +0000 |
commit | 8a1e7bd5dc9bbf7531fcc66427847448c71ec64c (patch) | |
tree | 2a2e147f0084d6036f8a85bfc4b38751a312a03f /meta/recipes-connectivity | |
parent | 7a7d6ac3eb74fb1fad6d1b90faff111a522a2d37 (diff) | |
download | poky-8a1e7bd5dc9bbf7531fcc66427847448c71ec64c.tar.gz |
nfs-utils: Improve handling when no exported fileysystems
Ensure /etc/exports exists and is readable before calling exportfs
to avoid errors.
(From OE-Core rev: 723f2464f746624ece06caa9752910a52f290f95)
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 | 2 |
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(){ | |||
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 | test -r /etc/exports && exportfs -r |
111 | start_nfsd "$NFS_SERVERS" | 111 | start_nfsd "$NFS_SERVERS" |
112 | start_mountd | 112 | start_mountd |
113 | test -r /etc/exports && exportfs -a;; | 113 | test -r /etc/exports && exportfs -a;; |