Re: NFS in 2.6.32
On 2009-12-09 14:59 +0100, David Baron wrote:
> Get warning not supported in current kernel.
> I did nothing in making 2.6.32 to disable (or enable) this.
>
> Deprecated?
> Needed?
> Bug?
Bug¹ in nfs-kernel-server, the kernel itself is almost certainly fine.
The solution is to remove the bogus check from the init script:
--8<---------------cut here---------------start------------->8---
--- nfs-kernel-server~ 2008-11-07 14:31:18.000000000 +0100
+++ nfs-kernel-server 2009-12-03 17:32:07.000000000 +0100
@@ -63,12 +63,6 @@
then
do_modprobe nfsd
- # See if our running kernel supports the NFS kernel server
- if [ -f /proc/kallsyms ] && ! grep -qE 'init_nf(sd| )' /proc/kallsyms; then
- log_warning_msg "Not starting $DESC: no support in current kernel."
- exit 0
- fi
-
do_mount nfsd $PROCNFSD_MOUNTPOINT || NEED_SVCGSSD=no
log_begin_msg "Exporting directories for $DESC..."
$PREFIX/sbin/exportfs -r
--8<---------------cut here---------------end--------------->8---
Sven
¹ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550153
Reply to: