nfs-utils: disable the services and fix for udp proto 06/4406/1
authorJackie Huang <jackie.huang@windriver.com>
Thu, 18 Jun 2020 15:02:00 +0000 (23:02 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Fri, 17 Jul 2020 06:25:12 +0000 (14:25 +0800)
* Disable the services by default sicne stx uses the ones
  from nfs-utils-config-1.0-1.tis.noarch.

* Add nfs.conf and enable udp proto which is required by stx
  pxe installation and deployment.

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

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

index bd4ca24..7f3db98 100644 (file)
 
 do_install_append() {
        mv ${D}/${sbindir}/sm-notify ${D}/${sbindir}/nfs-utils-client_sm-notify
+
+       # 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
 }
+
+SYSTEMD_AUTO_ENABLE = "disable"