parent
ea6d20ebaa
commit
b1b1bbf4d7
@ -1,21 +1,19 @@
|
|||||||
--- root 2009-07-08 04:32:27.000000000 +0000
|
22c22,37
|
||||||
+++ root 2009-07-10 13:13:06.000000000 +0000
|
< Linux) mount -n -o remount,rw /;;
|
||||||
@@ -19,7 +19,17 @@
|
---
|
||||||
|
> Linux) SCRATCH_ROOT=`sed -nr 's/(\S+)\s+\/newroot\s+.*/\1/p' /proc/mounts`
|
||||||
ebegin "Remounting root filesystem read/write"
|
> if [ "$SCRATCH_ROOT" -a "${SCRATCH_ROOT}" != "tmpfs" ];
|
||||||
case "${RC_UNAME}" in
|
> then
|
||||||
- Linux) mount -n -o remount,rw /;;
|
> mount -n $SCRATCH_ROOT /mnt/scratch
|
||||||
+ Linux) SCRATCH_ROOT=`sed -nr 's/(\S+)\s+\/newroot\s+.*/\1/p' /proc/mounts`
|
> if [[ -n `cat /proc/mounts | grep "none / aufs"` ]];
|
||||||
+ if [ "$SCRATCH_ROOT" -a "${SCRATCH_ROOT}" != "tmpfs" ];
|
> then
|
||||||
+ then
|
> mount -n -o remount,rw /
|
||||||
+ mount -n $SCRATCH_ROOT /mnt/scratch
|
> mount -n -t aufs -o remount,rw none /mnt/builder
|
||||||
+ mount -n -o remount,rw /
|
> else
|
||||||
+ mount -n -t aufs -o remount,rw none /mnt/builder
|
> :
|
||||||
+ mount -o loop -t squashfs /mnt/scratch/livecd.squashfs /mnt/scratch/calculate
|
> fi
|
||||||
+ else
|
> mount -o loop -t squashfs /mnt/scratch/livecd.squashfs /mnt/scratch/calculate
|
||||||
+ mount -n -o remount,rw /
|
> else
|
||||||
+ fi
|
> 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