aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-18 15:35:52 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-18 15:35:52 -0500
commit81beb5d6b7e549d56fd717f7def96e7bb3e0824b (patch)
tree7c26221a821d149e9cd111374dbfad88ffe79489
parent7d92e946865347ac666fc834b6d7d22d9bcd5384 (diff)
Properly setup environment for build. May have been causing issues later on in the build especially with M4.
-rwxr-xr-xlfs.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/lfs.sh b/lfs.sh
index 41b916f..bcdadc0 100755
--- a/lfs.sh
+++ b/lfs.sh
@@ -4,9 +4,18 @@ source spinner.sh
source colors.sh
#source versioncheck.sh
-export LFS_VER=LFS10_1
+set +h
+umask 022
export LFS=/mnt/lfs
-export LFS_TGT=x86_64-lfs-linux-gnu
+export LC_ALL=POSIX
+export LFS_TGT=$(uname -m)-lfs-linux-gnu
+PATH=/usr/bin
+if [ ! -L /bin ]; then PATH=/bin:${PATH}; fi
+export PATH=${LFS}/tools/bin:${PATH}
+echo $PATH
+export CONFIG_SITE=${LFS}/usr/share/config.site
+
+export LFS_VER=LFS10_1
export LFS_DISK=/dev/sdb
export LFS_ROOT=1
export LFS_PWD=lfs
@@ -18,7 +27,7 @@ export MAKEFLAGS="-j 3"
if ! grep -q "${LFS}" /proc/mounts; then
source setupdisk.sh "${LFS_DISK}" "${LFS_ROOT}"
sudo mount "${LFS_DISK}${LFS_ROOT}" "${LFS}"
- sudo chown -v $USER "${LFS}"
+ sudo chown -v ${USER} "${LFS}"
fi
mkdir -pv ${LFS_SRC}
@@ -41,7 +50,6 @@ esac
cp -rf *.sh chapter* packages.csv "${LFS}/sources"
cd "${LFS}/sources"
-export PATH="${LFS}/tools/bin:${PATH}"
source download.sh