|
|
|
@ -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
|
|
|
|
|