Make sure we umount /tmp in the jails before starting

This commit is contained in:
Rubén Rodríguez 2013-05-16 16:01:51 +02:00
parent a4f91e788b
commit b7f941da05

View file

@ -198,8 +198,8 @@ tmpumount(){
} }
tmpmount(){ tmpmount(){
[ $MEM -lt 16000000 ] && return [ $MEM -lt 16000000 ] && return
echo $PACKAGE | grep -q "linux" && return
grep jails/$UPSTREAM-$ARCH/tmp /proc/mounts -q && tmpumount grep jails/$UPSTREAM-$ARCH/tmp /proc/mounts -q && tmpumount
echo $PACKAGE | grep -q "linux" && return
mount -t tmpfs -o size=15G none jails/$UPSTREAM-$ARCH/tmp mount -t tmpfs -o size=15G none jails/$UPSTREAM-$ARCH/tmp
} }