git-svn-id: http://svn.calculate.ru/calculate/trunk@2020 c91db197-33c1-4113-bf15-f8a5c547ca64master
parent
14c5b2b3a6
commit
c679010083
@ -0,0 +1,20 @@
|
||||
--- root 2009-07-08 04:32:27.000000000 +0000
|
||||
+++ root 2009-07-10 13:13:06.000000000 +0000
|
||||
@@ -19,7 +19,16 @@
|
||||
|
||||
ebegin "Remounting root filesystem read/write"
|
||||
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" ];
|
||||
+ then
|
||||
+ mount -n $SCRATCH_ROOT /mnt/calculate
|
||||
+ mount -n -t squashfs -o remount,dirs=/mnt/calculate/workspace=rw:/mnt/calculate/diff=ro:/mnt/calculate/scratch=ro unionfs /
|
||||
+ mount -n -t squashfs -o remount,dirs=/mnt/calculate/diff=rw:/mnt/calculate/scratch=ro unionfs /mnt/builder
|
||||
+ else
|
||||
+ mount -n -o remount,rw /
|
||||
+ fi
|
||||
+ ;;
|
||||
*) mount -u -o rw /;;
|
||||
esac
|
||||
if eend $? "Root filesystem could not be mounted read/write"; then
|
Loading…
Reference in new issue