Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26989 - [nfs-utils] rc.d scripts reference mountpoint command but it is not a dependnecy

Attached to Project: Arch Linux
Opened by Christopher Peplin (peplin) - Friday, 18 November 2011, 03:46 GMT
Last edited by Eric Belanger (Snowman) - Friday, 18 November 2011, 20:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The /etc/rc.d/nfs-common and /etc/rc.d/nfs-server scripts both try to use the mountpoint command provided by the util-linux package, but nfs-utils does not have a dependency on this package.

Additional info:

nfs-utils 1.2.5-1

The specific section in the nfs-common script looks like this:

if grep -vw "$1" /proc/mounts &> /dev/null ; then
if ! mountpoint -q "$2" ; then
mount -t "$1" "$1" "$2" -o "$3"
return
fi
fi

Steps to reproduce:

Install nfs-utils but not util-linux and try to start nfs-common with "/etc/rc.d/nfs-common start" - it will fail with "command not found: mountpoint" and although it actually does start up rpc.statd, it loses track of its PID and all hell breaks loose.

Next install til-linux 2.20.1-1 and everything works fine.
This task depends upon

Closed by  Eric Belanger (Snowman)
Friday, 18 November 2011, 20:02 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Friday, 18 November 2011, 09:10 GMT
Util-linux is a base package, and besides that, I don't think you will be able to boot your system without it.
Comment by Christopher Peplin (peplin) - Friday, 18 November 2011, 14:17 GMT
Very odd! I'm new to Arch, so I apologize for not checking that first.

util-linux was indeed installed a few days ago, but it seems that when I ran a pacman -Syu on 11/16 and this upgrade happened:

[2011-11-16 22:32] upgraded util-linux (2.19.1-3 -> 2.20.1-1)

the mountpoint binary was lost.

While I was investigating this NFS issue there indeed was no /bin/mountpoint on my system. When I reinstalled util-linux:

[2011-11-18 06:37] Running 'pacman -S util-linux'
[2011-11-18 06:37] upgraded util-linux (2.20.1-1 -> 2.20.1-1)

the mountpoint binary returned.

As far as nfs-utils is concerned I will request to close this issue. I have no idea how mountpoint was wiped from my system by doing an upgrade - I didn't touch the machine in between and only noticed when I needed to restart NFS and it failed.

Loading...