Package: nfs-common
Version: 1:1.1.1-3
Severity: normal
Tags: patch
Hi,
I got following error on system bootup after removed (not purged) the
nfs-common package.
Starting NFS common utilities: statdstart-stop-daemon: stat /sbin/rpc.statd:
No such file or directory (No such file or directory)
.
To reproduce this problem:
# aptitude install nfs-common
# aptitude remove nfs-common
and then, reboot the computer or execute '/etc/init.d/nfs-common start' will
shows:
Starting NFS common utilities: statdstart-stop-daemon: stat /sbin/rpc.statd:
No such file or directory (No such file or directory)
.
I think the problem is that /etc/init.d/nfs-common does not check if
/sbin/rpc.statd is available.
Because of init.d script should not fail when package has been removed but
configuration files remain,
/etc/init.d/nfs-common should check /sbin/rpc.statd and exit if it is
unavailable.
You can fix this problem by adding
test -x $PREFIX/sbin/rpc.statd || exit 0
or
[ -x $PREFIX/sbin/rpc.statd ] || exit 0
to top of /etc/init.d/nfs-common script.
I have made a patch to fix this problem.
Note: In this patch, I moved PREFIX= to earlier and add a comment.
I think it is in line with debian/nfs-kernel-server.init.
--- nfs-utils-1.1.1/debian/nfs-common.init.orig 2007-10-27 22:26:15.000000000
+0900
+++ nfs-utils-1.1.1/debian/nfs-common.init 2007-10-27 22:27:33.000000000
+0900
@@ -14,10 +14,13 @@
# What is this?
DESC="NFS common utilities"
+PREFIX=
+
+# Exit if required binaries are missing.
+[ -x $PREFIX/sbin/rpc.statd ] || exit 0
# Read config
DEFAULTFILE=/etc/default/nfs-common
-PREFIX=
NEED_IDMAPD=
NEED_GSSD=
PIPEFS_MOUNTPOINT=/var/lib/nfs/rpc_pipefs
Regards,
Morita Sho
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-k7 (SMP w/1 CPU core)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages nfs-common depends on:
ii adduser 3.105 add and remove users and groups
ii initscripts 2.86.ds1-38.1 Scripts for initializing and shutt
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libcomerr2 1.40.2-1 common error description library
ii libevent1 1.3d-1 An asynchronous event notification
ii libgssglue1 0.1-1 mechanism-switch gssapi library
ii libkrb53 1.6.dfsg.3~beta1-2 MIT Kerberos runtime libraries
ii libnfsidmap2 0.20-0 An nfs idmapping library
ii librpcsecgss3 0.17-1 allows secure rpc communication us
ii libwrap0 7.6.dbs-14 Wietse Venema's TCP wrappers libra
ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip
ii netbase 4.30 Basic TCP/IP networking system
ii portmap 6.0-4 The RPC portmapper
ii ucf 3.003 Update Configuration File: preserv
nfs-common recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]