From 268f23ce234484ce5c6044f17f703eb0737f0ed7 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 25 Feb 2009 05:05:59 +0000 Subject: Cleaned up/restructured the mounting of fs components (function fsmount), removed creation of /dev/rtc (as it is a moving target in newer distros (25N 0 instead of traditional 10 135) - solution to be found), earlier start of dbus/hal in Ubuntu. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2639 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/stage3-stuff/bin/servconfig | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'initramfs/stage3-stuff/bin/servconfig') diff --git a/initramfs/stage3-stuff/bin/servconfig b/initramfs/stage3-stuff/bin/servconfig index 1c4b43cf..3234d915 100755 --- a/initramfs/stage3-stuff/bin/servconfig +++ b/initramfs/stage3-stuff/bin/servconfig @@ -282,12 +282,11 @@ if [ -n "$scratch" -a -z "$tmpisdisk" ] ; then *) tmpserv=$(uri_token $scratch server) tmppath=$(uri_token $scratch path) - # check that nfs is available - nfsmod # hanging mount processes might stop further setup - timeout - # 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 && { + # should be configured ... + # fsmount proto server path target options + fsmount nfs ${tmpserv} ${temppath} /tmp/scratch \ + "rw,intr,soft,timeo=2,nosuid" && { if [ -d /tmp/scratch/${clientip} ] ; then mv /tmp/scratch/${clientip} /tmp/scratch/${clientip}.totrash rm -rf /tmp/scratch/${clientip}.totrash 2>/dev/null & @@ -295,8 +294,8 @@ if [ -n "$scratch" -a -z "$tmpisdisk" ] ; then testmkd /tmp/scratch/${clientip} # 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 + fsmount nfs ${tmpserv} ${temppath} /mnt/tmp \ + "rw,intr,soft,timeo=2,nosuid" # somehow we need to move it to the vmware plugin. Any ideas # how to handle the dependencies? # create an empty container file for vmware *.vmem, it does not -- cgit v1.2.3-55-g7522