git-svn-id: http://svn.calculate.ru/calculate/trunk@2286 c91db197-33c1-4113-bf15-f8a5c547ca64

master
mhiretskiy 15 years ago
parent 3bfaf16fc3
commit 2353a1d499

@ -6,7 +6,7 @@
case "${RC_UNAME}" in
- Linux) mount -n -o remount,rw /;;
+ Linux) SCRATCH_ROOT=`sed -nr 's/(\S+)\s+\/newroot\s+.*/\1/p' /proc/mounts`
+ if [ $SCRATCH_ROOT -a "${SCRATCH_ROOT}" != "tmpfs" ];
+ if [ "$SCRATCH_ROOT" -a "${SCRATCH_ROOT}" != "tmpfs" ];
+ then
+ mount -n $SCRATCH_ROOT /mnt/scratch
+ mount -n -t unionfs -o remount,dirs=/mnt/scratch/workspace=rw:/mnt/scratch/delta=ro:/mnt/scratch/calculate=ro unionfs /

Loading…
Cancel
Save