From ceb3481d56857ecd5cb83cd34973fb89090ff691 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 6 Apr 2006 13:31:48 +0200 Subject: [PATCH 1/1] Imported Debian patch 1.0.7-9 --- debian/changelog | 9 +++++++++ debian/nfs-kernel-server.init | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index bbb9d29..5b74a34 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +nfs-utils (1:1.0.7-9) unstable; urgency=low + + * When checking for nfsd support in the kernel, check for init_nfsd + (which is a function) rather than nfsd_version (which is a variable); + kernels compiled without CONFIG_KALLSYMS_ALL=y have only the former. + (Closes: #361026) + + -- Steinar H. Gunderson Thu, 6 Apr 2006 13:31:48 +0200 + nfs-utils (1:1.0.7-8) unstable; urgency=low * Don't complain about missing sync/async for a read-only export. diff --git a/debian/nfs-kernel-server.init b/debian/nfs-kernel-server.init index 922b734..0cd93a0 100755 --- a/debian/nfs-kernel-server.init +++ b/debian/nfs-kernel-server.init @@ -64,7 +64,7 @@ case "$1" in do_modprobe nfsd # See if our running kernel supports the NFS kernel server - if [ -f /proc/kallsyms ] && ! grep -q nfsd_version /proc/kallsyms; then + if [ -f /proc/kallsyms ] && ! grep -q init_nfsd /proc/kallsyms; then echo "Not starting $DESC: no support in current kernel." exit 0 fi -- 2.39.2