|
|
|
@ -27,7 +27,7 @@ else
|
|
|
|
|
REMOUNT="mount -t unionfs -o remount,dirs=/ unionfs /"
|
|
|
|
|
REMOUNTBUILDER=":"
|
|
|
|
|
fi
|
|
|
|
|
TIMERUN=`python -c "import time;print str(time.time())[:10]"`
|
|
|
|
|
TIMERUN=`date +%s`
|
|
|
|
|
EMERGELOG=${BUILDER}/var/log/emerge.log
|
|
|
|
|
TAILEMERGELOG="tail -f ${EMERGELOG}"
|
|
|
|
|
|
|
|
|
@ -50,9 +50,9 @@ watching() {
|
|
|
|
|
# Монтируем ресурсы
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
mountres() {
|
|
|
|
|
mount -o bind /usr/calculate/share ${BUILDER}/usr/calculate/share &&
|
|
|
|
|
mount -t proc none ${BUILDER}/proc &&
|
|
|
|
|
mount -o bind /dev ${BUILDER}/dev &&
|
|
|
|
|
mount -o bind /var/calculate/remote ${BUILDER}/var/calculate/remote
|
|
|
|
|
mount -o bind /usr/calculate/share ${BUILDER}/usr/calculate/share
|
|
|
|
|
mount -t proc none ${BUILDER}/proc && mount -o bind /dev ${BUILDER}/dev &&
|
|
|
|
|
mount -t sysfs none ${BUILDER}/sys &&
|
|
|
|
|
mount -o bind /dev/pts ${BUILDER}/dev/pts && return 0
|
|
|
|
|
return 1
|
|
|
|
|