From 447c6ba108ebc392dd23714c50e161e58490e321 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 14 Jun 2012 15:34:26 +0200 Subject: nfs performance fix --- src/initramfs/scripts/etc/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/initramfs/scripts/etc/functions b/src/initramfs/scripts/etc/functions index 6feb29d1..fb67b472 100644 --- a/src/initramfs/scripts/etc/functions +++ b/src/initramfs/scripts/etc/functions @@ -157,10 +157,10 @@ case "${proto}" in { modprobe ${MODPRV} nfs 2>/dev/null || error "$error_nfsmod" nonfatal; } # nfs4 seems not supported yet by busybox mount (to be checked) #for nfsproto in nfs4 nfs; do - for transport in tcp udp fail; do + for transport in tcp tcp tcp udp fail; do [ $transport = "fail" ] && { error "$init_nfs" nonfatal; noimg=yes; break; } - mount -n -t nfs -o ${mntopt},nolock,${transport} \ + mount -n -t nfs -o ${mntopt},nolock,rsize=262144,wsize=262144,proto=${transport} \ ${server}:${srcpath} ${target} && break done #done -- cgit v1.2.3-55-g7522