[Bug 1072230] [NEW] rpcinfo is in /sbin, not /bin => NFS v3 is disabled

Alan Robertson alanr at unix.sh
Sat Oct 27 22:54:32 UTC 2012


Public bug reported:

The init script for nfs-kernel-server looks to see if NFS v3 is enabled
by running rpcinfo.

This is nice and all, but it will only work if the pathname to rpcinfo
is correct.

The original code said this:

                $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
                    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"


The correct code is this:

                $PREFIX/sbin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
                    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"

Either that or rpcinfo is misplaced.

In any case, this keeps nfs v3 from working - because it ALWAYS turns on
the --no-nfs-version-3 flag.

Perhaps this should be checked for at the beginning of the script like
some of the other commands?

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: nfs-kernel-server 1:1.2.5-3ubuntu3.1
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Sat Oct 27 16:48:01 2012
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
ProcEnviron:
 TERM=xterm
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
SourcePackage: nfs-utils
UpgradeStatus: Upgraded to quantal on 2012-10-23 (3 days ago)
mtime.conffile..etc.init.d.nfs.kernel.server: 2012-10-27T16:34:08.070671

** Affects: nfs-utils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug quantal

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1072230

Title:
  rpcinfo is in /sbin, not /bin => NFS v3 is disabled

Status in “nfs-utils” package in Ubuntu:
  New

Bug description:
  The init script for nfs-kernel-server looks to see if NFS v3 is
  enabled by running rpcinfo.

  This is nice and all, but it will only work if the pathname to rpcinfo
  is correct.

  The original code said this:

                  $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
                      RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"

  
  The correct code is this:

                  $PREFIX/sbin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
                      RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"

  Either that or rpcinfo is misplaced.

  In any case, this keeps nfs v3 from working - because it ALWAYS turns
  on the --no-nfs-version-3 flag.

  Perhaps this should be checked for at the beginning of the script like
  some of the other commands?

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: nfs-kernel-server 1:1.2.5-3ubuntu3.1
  ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
  Uname: Linux 3.5.0-17-generic x86_64
  ApportVersion: 2.6.1-0ubuntu3
  Architecture: amd64
  Date: Sat Oct 27 16:48:01 2012
  InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
  ProcEnviron:
   TERM=xterm
   SHELL=/bin/bash
   PATH=(custom, user)
   LANG=en_US.UTF-8
  SourcePackage: nfs-utils
  UpgradeStatus: Upgraded to quantal on 2012-10-23 (3 days ago)
  mtime.conffile..etc.init.d.nfs.kernel.server: 2012-10-27T16:34:08.070671

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1072230/+subscriptions




More information about the foundations-bugs mailing list