Wind River Support Network

HomeDefectsLIN8-491
Fixed

LIN8-491 : wrlinux 5.0.1. - modify nfscommon configuration script behaviour

Created: Jun 28, 2015    Updated: Mar 4, 2016
Resolved Date: Jul 20, 2015
Found In Version: 8.0
Fix Version: 8.0.0.0.LB06
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

We have a proposition to enhance the nfs-utils package configuration files with a mechanism which provides a more straightforward way to have custom configurations included.

Patch below:

Subject: [PATCH] debianize start-statd

---
 .../nfs-utils/files/start-statd-use-flags.patch          | 16
++++++++++++++++
 recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend  |  1 +
 2 files changed, 17 insertions(+)
 create mode 100644
recipes-connectivity/nfs-utils/files/start-statd-use-flags.patch

diff --git
a/recipes-connectivity/nfs-utils/files/start-statd-use-flags.patch
b/recipes-connectivity/nfs-utils/files/start-statd-use-flags.patch
new file mode 100644
index 0000000..f527c18
--- /dev/null
+++ b/recipes-connectivity/nfs-utils/files/start-statd-use-flags.patch
@@ -0,0 +1,16 @@
+diff -urN a/utils/statd/start-statd b/utils/statd/start-statd
+--- a/utils/statd/start-statd	2010-09-28 14:24:16.000000000 +0200
++++ b/utils/statd/start-statd	2013-09-12 23:45:31.000000000 +0200
+@@ -4,6 +4,10 @@
+ # /var/run/rpc.statd.pid).
+ # It should run run statd with whatever flags are apropriate for this
+ # site.
+-PATH=/sbin:/usr/sbin
+-exec rpc.statd --no-notify
+
++DEFAULTFILE=/etc/default/nfscommon
++if [ -f $DEFAULTFILE ]; then
++	. $DEFAULTFILE
++fi
++PATH=/sbin:/usr/sbin
++exec rpc.statd --no-notify $STATDOPTS
diff --git a/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
b/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
index 65bfeb6..a4eed2f 100644
--- a/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
+++ b/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
@@ -6,6 +6,7 @@ PRINC = "4"
 SRC_URI += "file://do-not-pass-CFLAGS-to-native.patch \
             file://0001-Fix-statdb_dump-on-nfs-root-fs.patch \
             file://nfs-utils-support-mountprog-and-nfsprog-options.patch \
+            file://start-statd-use-flags.patch \
             file://nfscommon \
 "

Steps to Reproduce

-
Live chat
Online