summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs')
-rwxr-xr-xinitramfs/initrd-stuff/bin/servconfig10
1 files changed, 6 insertions, 4 deletions
diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig
index 3bcf5e16..d26a4213 100755
--- a/initramfs/initrd-stuff/bin/servconfig
+++ b/initramfs/initrd-stuff/bin/servconfig
@@ -472,12 +472,14 @@ if [ -n "$scratch" -a -z "$tmpisdisk" ] ; then
tmpserv=$(uri_token $scratch server)
tmppath=$(uri_token $scratch path)
# hanging mount processes might stop further setup - timeout
- # should be configured ...
- mount -t nfs -o rw,nolock,intr,nodev,soft,timeo=2,nosuid \
+ # should be configured ... it is possible to mount "nolock" only
+ mount -t nfs -o rw,tcp,nolock,intr,nodev,soft,timeo=2,nosuid \
${tmpserv}:${tmppath} /tmp/scratch >/dev/null 2>&1 && {
- mkdir -p /tmp/scratch/${clientip} >/dev/null 2>&1
+ testmkd /tmp/scratch/${clientip}
umount /tmp/scratch
- mount -t nfs -o rw,nolock,intr,nodev,soft,timeo=2,nosuid \
+ # no need for tempfs there ...
+ umount /mnt/tmp >/dev/null 2>&1
+ mount -t nfs -o rw,tcp,nolock,intr,nodev,soft,timeo=2,nosuid \
${tmpserv}:${tmppath}/${clientip} /mnt/tmp >/dev/null 2>&1; }
;;
esac