|
|
@ -6,7 +6,7 @@
|
|
|
|
case "${RC_UNAME}" in
|
|
|
|
case "${RC_UNAME}" in
|
|
|
|
- Linux) mount -n -o remount,rw /;;
|
|
|
|
- Linux) mount -n -o remount,rw /;;
|
|
|
|
+ Linux) SCRATCH_ROOT=`sed -nr 's/(\S+)\s+\/newroot\s+.*/\1/p' /proc/mounts`
|
|
|
|
+ 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
|
|
|
|
+ then
|
|
|
|
+ mount -n $SCRATCH_ROOT /mnt/scratch
|
|
|
|
+ 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/workspace=rw:/mnt/scratch/delta=ro:/mnt/scratch/calculate=ro unionfs /
|
|
|
|