if [ ! -e $LFS/usr/src/lfs/ ]; then
exiterror "No such file or directory: $LFS/usr/src/lfs/"
fi
+
+ COMMAND=${@-bash} # Run command, given as parameters.
echo -ne "Entering ${BOLD}$MACHINE${NORMAL} LFS chroot, type exit to return to host environment\n"
STAGE=$STAGE \
STAGE_ORDER=$STAGE_ORDER \
LOGFILE=$(echo $LOGFILE | sed "s,$BASEDIR,/usr/src,g") \
- bash
+ $COMMAND
if [ $? -ne 0 ]; then
exiterror "chroot error"
export CCACHE_PREFIX="distcc"
export DISTCC_DIR=$BASEDIR/distcc
- distcc_get_hosts
-
# Remove pre-install list of installed files in case user erase some files before rebuild
rm -f $LFS/usr/src/lsalr 2>/dev/null
}
build_spy_send_profile
build_spy state compiling
build_spy start
+ distcc_get_hosts
if [ -f $BASEDIR/log_${TARGET}/02_base/stage2-LFS ]; then
prepareenv