Swaping dirnames calculate scratch

git-svn-id: http://svn.calculate.ru/calculate/trunk@2123 c91db197-33c1-4113-bf15-f8a5c547ca64
master
mhiretskiy 15 years ago
parent 3bb56abd49
commit 7eb655007e

@ -8,9 +8,9 @@
+ Linux) SCRATCH_ROOT=`sed -nr 's/(\S+)\s+\/newroot\s+.*/\1/p' /proc/mounts`
+ if [ $SCRATCH_ROOT -a "${SCRATCH_ROOT}" != "tmpfs" ];
+ then
+ mount -n $SCRATCH_ROOT /mnt/calculate
+ mount -n -t unionfs -o remount,dirs=/mnt/calculate/workspace=rw:/mnt/calculate/delta=ro:/mnt/calculate/scratch=ro unionfs /
+ mount -n -t unionfs -o remount,dirs=/mnt/calculate/delta=rw:/mnt/calculate/scratch=ro unionfs /mnt/builder
+ 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 /
+ mount -n -t unionfs -o remount,dirs=/mnt/scratch/delta=rw:/mnt/scratch/calculate=ro unionfs /mnt/builder
+ else
+ mount -n -o remount,rw /
+ fi

Loading…
Cancel
Save