From 2353a1d49943d3438e749b5d88fb6d0c7ae0e8c7 Mon Sep 17 00:00:00 2001 From: mhiretskiy Date: Fri, 31 Jul 2009 17:26:43 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate/trunk@2286 c91db197-33c1-4113-bf15-f8a5c547ca64 --- install/profile/CLS/etc/init.d/root.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/profile/CLS/etc/init.d/root.diff b/install/profile/CLS/etc/init.d/root.diff index 5de5193..e615a54 100644 --- a/install/profile/CLS/etc/init.d/root.diff +++ b/install/profile/CLS/etc/init.d/root.diff @@ -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 /