From f88180a0286334ec87f4c386e3aaf598b79c4223 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 14 Oct 2007 00:55:45 +0000 Subject: Proper mount options for NFS/scratch ... Skip some files for SUSE exports. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1381 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/bin/servconfig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'initramfs') 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 -- cgit v1.2.3-55-g7522