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:
@@ -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;;
|
||||
|
||||
Reference in New Issue
Block a user