fix lfs missing bash
This commit is contained in:
@@ -92,14 +92,17 @@ echo " This will take a while (30-60+ minutes on 32 threads)."
|
|||||||
echo " Logs will be in: ${LFS}/sources/logs/"
|
echo " Logs will be in: ${LFS}/sources/logs/"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Run build-all.sh as the lfs user with a clean environment
|
# Run build-all.sh as the lfs user with a clean environment.
|
||||||
# The build scripts source darkforge-env.sh internally, so we just
|
# We use 'su' without -l to avoid the lfs .bash_profile which does
|
||||||
# need LFS set and the lfs user's PATH to find basic tools.
|
# 'exec env -i /bin/bash' and would swallow our -c command.
|
||||||
su -l lfs -c "
|
# Instead, we build the clean environment ourselves.
|
||||||
export LFS=${LFS}
|
env -i HOME=/home/lfs TERM="${TERM}" \
|
||||||
source ${LFS}/sources/darkforge-env.sh
|
LFS="${LFS}" \
|
||||||
bash ${SCRIPTS_DEST}/build-all.sh
|
LC_ALL=POSIX \
|
||||||
" || {
|
LFS_TGT=x86_64-darkforge-linux-gnu \
|
||||||
|
PATH="${LFS}/tools/bin:/usr/bin" \
|
||||||
|
MAKEFLAGS="-j32" \
|
||||||
|
su lfs -s /bin/bash -c "bash ${SCRIPTS_DEST}/build-all.sh" || {
|
||||||
fail "Build failed! Check logs in ${LFS}/sources/logs/"
|
fail "Build failed! Check logs in ${LFS}/sources/logs/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user