From 9c1020f1d49008a2111326fdb8e26c0d0daa8612 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Wed, 6 Nov 2013 19:30:47 +0200 Subject: [PATCH] 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 --- packages/initramfs/sysutils/busybox-initramfs/scripts/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/initramfs/sysutils/busybox-initramfs/scripts/init b/packages/initramfs/sysutils/busybox-initramfs/scripts/init index 72e4535e98..b2badd7201 100755 --- a/packages/initramfs/sysutils/busybox-initramfs/scripts/init +++ b/packages/initramfs/sysutils/busybox-initramfs/scripts/init @@ -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() {