mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +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
|
#FIXME: need to create the /var/lib/nfs/... directories
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
exportfs -r
|
test -r /etc/exports && exportfs -r
|
||||||
start_nfsd "$NFS_SERVERS"
|
start_nfsd "$NFS_SERVERS"
|
||||||
start_mountd
|
start_mountd
|
||||||
test -r /etc/exports && exportfs -a;;
|
test -r /etc/exports && exportfs -a;;
|
||||||
|
|||||||
Reference in New Issue
Block a user