From 21328eaacf4b066a2b72cf28d507c5b6b0340333 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Sat, 10 Oct 2020 15:49:53 +0800 Subject: [PATCH] nfs-utils: fix for udp proto Add nfs.conf and enable udp proto, which is required by stx pxe installation and deployment. Story: 2008204 Task: 40988 Change-Id: I01cb385f26f65e2fa575715699e9863cb710bd6f Signed-off-by: Jackie Huang --- .../recipes-connectivity/nfs-utils/nfs-utils_%.bbappend | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-stx-integ/recipes-connectivity/nfs-utils/nfs-utils_%.bbappend b/meta-stx-integ/recipes-connectivity/nfs-utils/nfs-utils_%.bbappend index 0e1a52a..41ae03e 100644 --- a/meta-stx-integ/recipes-connectivity/nfs-utils/nfs-utils_%.bbappend +++ b/meta-stx-integ/recipes-connectivity/nfs-utils/nfs-utils_%.bbappend @@ -37,7 +37,11 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit" do_install_append() { mv ${D}/${sbindir}/sm-notify ${D}/${sbindir}/nfs-utils-client_sm-notify install -D -m 755 ${WORKDIR}/${DSTSUFX0}/filesystem-scripts-1.0/uexportfs ${D}/${sysconfdir}/init.d/uexportfs - + + # 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 + # 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 \