summaryrefslogtreecommitdiffstats
path: root/src/initramfs/scripts/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/initramfs/scripts/etc')
-rw-r--r--src/initramfs/scripts/etc/functions15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/initramfs/scripts/etc/functions b/src/initramfs/scripts/etc/functions
index 717a9c10..b1b82d24 100644
--- a/src/initramfs/scripts/etc/functions
+++ b/src/initramfs/scripts/etc/functions
@@ -155,12 +155,15 @@ case "${proto}" in
# we expect nfs mounts here ... check that nfs module is loaded before
cat /proc/filesystems | grep -q -E "[[:space:]]nfs" || \
{ modprobe ${MODPRV} nfs 2>/dev/null || error "$error_nfsmod" nonfatal; }
- for transport in tcp udp fail; do
- [ $transport = "fail" ] && { error "$init_nfs" nonfatal;
- noimg=yes; break;}
- mount -n -t nfs -o ${mntopt},nolock,${transport} \
- ${server}:${srcpath} ${target} && break
- done
+ # nfs4 seems not supported yet by busybox mount (to be checked)
+ #for nfsproto in nfs4 nfs; do
+ for transport in tcp udp fail; do
+ [ $transport = "fail" ] && { error "$init_nfs" nonfatal;
+ noimg=yes; break; }
+ mount -n -t nfs -o ${mntopt},nolock,${transport} \
+ ${server}:${srcpath} ${target} && break
+ done
+ #done
;;
smb|cifs)
# cifs mounts might be problematic if accessed with superuser id