Add mounting of /var/calculate/remote by cl-builder

master
Mike Hiretsky 14 years ago
parent 361e559bf4
commit fc5c260b9e

@ -5,6 +5,7 @@ CHANGE LOG
* The use of man-db when building systems. * The use of man-db when building systems.
* Added support Calculate Scratch Server. * Added support Calculate Scratch Server.
* Set guest uid=1000. * Set guest uid=1000.
* Addid the mounting of /var/calculate/remote by cl-builder.
1.3.12 1.3.12
* Fix creating format a digest file. * Fix creating format a digest file.

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

Loading…
Cancel
Save