You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
573 B
20 lines
573 B
22c22,37
|
|
< 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/scratch
|
|
> if [[ -n `cat /proc/mounts | grep "none / aufs"` ]];
|
|
> then
|
|
> mount -n -o remount,rw /
|
|
> mount -n -t aufs -o remount,rw none /mnt/builder
|
|
> else
|
|
> :
|
|
> fi
|
|
> mount -o loop -t squashfs /mnt/scratch/livecd.squashfs /mnt/scratch/calculate
|
|
> else
|
|
> mount -n -o remount,rw /
|
|
> fi
|
|
> ;;
|