#!/bin/bash [ -f /etc/sysconfig/emi-wn-chroot ] && source /etc/sysconfig/emi-wn-chroot NFS_OPTIONS=${NFS_OPTIONS:-hard,udp,intr,rsize=1024,wsize=1024,dev,async,rw} EMI_WN_PATH=${EMI_WN_PATH:-s29:/mnt/emi_wn} EMI_WN_TMP=${EMI_WN_TMP:-/mnt/work/emi-wn-tmp} EMI_WN_TORQUE=${EMI_WN_TORQUE:-/var/spool/torque} EMI_WN_GRID=${EMI_WN_GRID:-s29:/mnt/home/grid} MOUNT_POINT="$1" case ${MOUNT_POINT} in bin|boot|cluster|cvmfs|etc|home|lib|lib64|opt|root|sbin|usr|var|dev) echo "-fstype=nfs,${NFS_OPTIONS} ${EMI_WN_PATH}/${MOUNT_POINT}" ;; pts) echo "-fstype=devpts :devpts" ;; shm) echo "-fstype=tmpfs :tmpfs" ;; tmp) mkdir -p ${EMI_WN_TMP} chmod 1777 ${EMI_WN_TMP} echo "-bind :${EMI_WN_TMP}" ;; proc) echo "-fstype=proc :proc" ;; torque) echo "-bind :/${EMI_WN_TORQUE}" ;; grid) echo "-fstype=nfs,${NFS_OPTIONS} ${EMI_WN_GRID}" ;; cream_sandbox|cream_es_sandbox) echo "-fstype=nfs,nodev,async,rw glite.univ.kiev.ua:/var/${MOUNT_POINT}" ;; cvmfs.*) echo "-fstype=nfs,tcp,vers=3,nfsvers=3,noatime,ac,actimeo=60,async,nodev,ro 10.25.254.205:/cvmfs/${MOUNT_POINT#cvmfs.}" ;; *) exit 0 ;; esac