Ken Moffat wrote:
> On Tue, Mar 27, 2012 at 02:43:31PM -0400, Walter Webb wrote:
>> The test for kernels 2.6:
>>
>>        # NFSD support only in 2.6 kernel
>>        /bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null
>>
>> worked until kernel 3.2.6.  It causes an apparently harmless error
>> at boot time.  Changing the expression to "^2.6" fixes it.
>>
>  Are you sure that your server works correctly with that change ?
> 
>  I recall commenting (perhaps on lfs-support, I had other issues)
> when I was bringing up my server using LFS-6.8 last year.  At that
> time I was using 2.6.32 (long-term stable kernel) with otherwise
> LFS6.8.  I'm now using a 3.0 kernel and I've got that whole chunk of
> the bootscript commented out.

The code above was first committed in September 2004.  I'm not sure when 
the kernel started mounting nfsd automatically.

The original code was:

/bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null
if [ $? = 0 ]; then
    boot_mesg "Mounting nfsd virtual filesystem..."
    /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
    evaluate_retval
fi

I suppose we could remove that code completely, but it might break nfs 
on older kernels.  Changing to "^2.6" will always skip the code for 
version 3 kernels and later.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to