Wind River Support Network

HomeDefectsLIN5-6083
Fixed

LIN5-6083 : wrlinux 5.0.1 - nfs-utils nfsstat location

Created: Sep 19, 2013    Updated: Dec 19, 2017
Resolved Date: Oct 16, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

nfsstat is needed by both server and the client but it is only shipped with the server.
For other linux distributions Debian for example, it is included in the client package nfscommon.
Desired result: nfsstat to be moved to the client package - nfs-utils-client

Workaround

Same workaround with Defect WIND00434456:

1) layers/wr-base/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
--- a/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
+++ b/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
@@ -13,8 +13,8 @@ SRC_URI += "file://do-not-pass-CFLAGS-to-native.patch \
 
 inherit useradd
 
-USERADD_PACKAGES = "${PN}"
-USERADD_PARAM_${PN} = "-d /var/lib/nfs -r -s /bin/false rpcuser"
+USERADD_PACKAGES = "${PN}-client"
+USERADD_PARAM_${PN}-client = "-d /var/lib/nfs -r -s /bin/false rpcuser"
 
 do_install_append () {
        chown rpcuser ${D}/var/lib/nfs

2)layers/oe-core/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb

--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
@@ -50,7 +50,8 @@ INHIBIT_AUTO_STAGE = "1"
 
 PACKAGES =+ "${PN}-client ${PN}-stats"
 FILES_${PN}-client = "${base_sbindir}/*mount.nfs* ${sbindir}/*statd \
-                      ${sbindir}/rpc.idpamd ${sbindir}/sm-notify \
+                      ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \
+                      ${sbindir}/showmount ${sbindir}/nfsstat \
                       /var/lib/nfs /etc/init.d/nfscommon"
 FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat"
 RDEPENDS_${PN}-stats = "python"

Steps to Reproduce

check current nfsstat location

Other Downloads


Live chat
Online