X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpre-install;h=0d72afd7b92ce0012200b289406dd1b81529fe4b;hb=2121ae9154ff063eef0defe0a9208663062a2d01;hp=27b810dfdb635b67ed536ed65b4654db790a69eb;hpb=d850183ab004abc65a405b3d925ab3f274e854b5;p=hvlinux.git diff --git a/stage0/pre-install b/stage0/pre-install index 27b810d..0d72afd 100755 --- a/stage0/pre-install +++ b/stage0/pre-install @@ -21,7 +21,7 @@ if ! grep -q "lfs" /etc/passwd; then fi # Creating basic directories -for subdir in tmp var tools cross-tools; do +for subdir in etc tmp var tools cross-tools; do dir=${LFS}/${subdir} if [ ! -d ${dir} ]; then install -dv ${dir} @@ -30,17 +30,12 @@ done chown -R lfs:lfs ${LFS} -# Creating a link from the host root directory to LFS cross-tools directories -for subdir in tools cross-tools; do - ln -sfvT ${LFS}/${subdir} /${subdir} -done - cat > /home/lfs/.bashrc << "EOF" # Setting up the environment set +h umask 022 LC_ALL=POSIX -PATH=/cross-tools/bin:/bin:/usr/bin +PATH=_CLFS_CROSS_TOOLS_PATH_/bin:/bin:/usr/bin HVMAKE="make -j ${MAKEJOBS}" unset CFLAGS @@ -49,6 +44,8 @@ unset CXXFLAGS export LC_ALL PATH HVMAKE EOF +sed -e "s@_CLFS_CROSS_TOOLS_PATH_@${CROSS_TOOLS_DIR}@" -i /home/lfs/.bashrc + chown lfs:lfs /home/lfs/.bashrc exit $?