From d25cb314d2672973d3eed42e736e681a3e3a4337 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 19 Jul 2007 21:11:07 +0000 Subject: initramfs-module-nfs: Make it actually mount NFS by using the same option as kernel does. --- packages/initrdscripts/files/nfsboot.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'packages/initrdscripts/files/nfsboot.sh') diff --git a/packages/initrdscripts/files/nfsboot.sh b/packages/initrdscripts/files/nfsboot.sh index 62a044267a..5129a53ebb 100644 --- a/packages/initrdscripts/files/nfsboot.sh +++ b/packages/initrdscripts/files/nfsboot.sh @@ -1,6 +1,11 @@ #!/bin/sh if [ "$ROOT_DEVICE" = "/dev/nfs" ]; then + + # These correspond to what kernel itself uses + # DO NOT CHANGE! + NFS_OPTIONS="-o nfsvers=2,nolock" + for arg in $CMDLINE; do echo $arg optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'` @@ -33,6 +38,6 @@ if [ "$ROOT_DEVICE" = "/dev/nfs" ]; then ) echo "booting from NFS: $nfsroot" - mount -t nfs $nfsroot /mnt + mount -t nfs $NFS_OPTIONS $nfsroot /mnt BOOT_ROOT=/mnt fi -- cgit v1.2.3