nfs-utils: add initial exports file 06/4606/1
authorJackie Huang <jackie.huang@windriver.com>
Fri, 19 Jun 2020 02:37:45 +0000 (10:37 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Wed, 26 Aug 2020 02:28:12 +0000 (10:28 +0800)
Add initial exports file to avoid nfsserver fail to start,
and stx puppet manifest will add proper nfs exports in
controller-config.

Issue-ID: INF-169
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Icc39527325a81b5e625e03fa0c931c03342a7407

meta-stx/recipes-connectivity/nfs-utils/nfs-utils_%.bbappend

index 7f3db98..aee5944 100644 (file)
@@ -19,6 +19,9 @@ do_install_append() {
        # install nfs.conf and enable udp proto
        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
 }
 
 SYSTEMD_AUTO_ENABLE = "disable"