busybox-initramfs/scripts/init: tweak default nfs mount options

- do soft instead of hard nfs mounts
- decrease timeo,retrans

default timeo (70) * our retrans (10) is a bit too high, causing
long lock-ups on resume from suspend with /storage on nfs (due to a
non-related connman bug)

I have a very basic nfs knowledge, but IMO if 2 retrans with 3 sec
timeout fails, there is a general networking problem and the nfs
share is "broken" anyway (loosy network or so)

ref #2596
This commit is contained in:
Stefan Saraev 2013-11-06 19:30:47 +02:00
parent cffec309f8
commit 9c1020f1d4

View File

@ -274,7 +274,7 @@
[ "$NFS_OPTIONS" = "$1" ] && NFS_OPTIONS=
mount_common "$NFS_EXPORT" "$2" "$3,nolock,retrans=10,$NFS_OPTIONS" "nfs"
mount_common "$NFS_EXPORT" "$2" "$3,nolock,soft,timeo=3,retrans=2,$NFS_OPTIONS" "nfs"
}
mount_part() {