nfs-utils: add initial exports file

Add initial exports file to avoid nfsserver fail to start, and stx
puppet manifest will add proper nfs exports in controller-config.

Story: 2008204
Task: 40988

Change-Id: I902f278a25a6b75b47f18a858d632ee4aef9065c
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
Jackie Huang 2020-10-10 22:32:26 +08:00
parent 55f3618887
commit 067be61f1f

View File

@ -47,6 +47,9 @@ do_install_append() {
install -m 0755 ${S}/nfs.conf ${D}${sysconfdir}
sed -i -e 's/#\(\[nfsd\]\)/\1/' -e 's/#\( udp=\).*/\1y/' ${D}${sysconfdir}/nfs.conf
# add initial exports file
echo "# Initial exports for nfs" > ${D}${sysconfdir}/exports
# Libdir here is hardcoded in other scripts.
install -d -m 0755 ${D}/usr/lib/ocf/resource.d/platform/
install -D -m 755 ${WORKDIR}/${DSTSUFX0}/filesystem-scripts-1.0/nfsserver-mgmt \