From: Harald Hoyer Date: Wed, 30 Sep 2009 15:38:43 +0000 (+0200) Subject: nfs: specify nfs version 3 explicitly and retry with nfs version 2 X-Git-Tag: 003~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dc53cfd1ecba49d14a85c2162b35ee334576cd9;p=thirdparty%2Fdracut.git nfs: specify nfs version 3 explicitly and retry with nfs version 2 --- diff --git a/modules.d/95nfs/nfsroot b/modules.d/95nfs/nfsroot index a6e7deb12..e7825aec4 100755 --- a/modules.d/95nfs/nfsroot +++ b/modules.d/95nfs/nfsroot @@ -152,8 +152,9 @@ else warn "Locks unsupported on NFSv{2,3}, using nolock" 1>&2 # XXX Should we loop here? - mount -t nfs -o$options${options:+,}nolock $server:$path $NEWROOT \ - && { [ -e /dev/root ] || >/dev/root ; } + { mount -t nfs -o$options${options:+,}nolock,nfsvers=3 $server:$path $NEWROOT || \ + mount -t nfs -o$options${options:+,}nolock,nfsvers=2 $server:$path $NEWROOT ; } \ + && { [ -e /dev/root ] || >/dev/root ; } fi # inject new exit_if_exists