1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

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>
This commit is contained in:
Richard Purdie
2019-10-24 14:02:43 +01:00
parent 7a7d6ac3eb
commit 8a1e7bd5dc
@@ -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;;