Package: nfs-kernel-server
Version: 1:1.0.9-2
Severity: normal
Tags: patch

We should not assume that if modutils or module-init-tools is installed, 
then modules are enabled in the running kernel.

At least, we should also test availability of kernel modules, with 
/proc/modules or whatever.

--- /etc/init.d/nfs-kernel-server.orig  2006-07-10 18:16:36.000000000 +0200
+++ /etc/init.d/nfs-kernel-server       2006-07-10 18:18:05.000000000 +0200
@@ -37,7 +37,7 @@
 . /lib/lsb/init-functions

 do_modprobe() {
-    if [ -x /sbin/modprobe ]
+    if [ -x /sbin/modprobe -a -f /proc/modules ]
     then
         modprobe -q "$1" || true
     fi


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.16
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages nfs-kernel-server depends on:
ii  libc6                      2.3.6-15      GNU C Library: Shared libraries
ii  lsb-base                   3.1-10        Linux Standard Base 3.1 init scrip
ii  nfs-common                 1:1.0.9-2     NFS support files common to client
ii  sysvinit                   2.86.ds1-14.1 System-V-like init utilities
ii  ucf                        2.0012        Update Configuration File: preserv

nfs-kernel-server recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to