aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 10:36:03 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 10:36:03 -0500
commit48c1619900e36297e9ac36bd1294f396e954ccfb (patch)
treed622e11cfbbd51f33f07778c7af915f8120e225c
parent6b9175a4a427a23560fd84f07069c6a472d94e5e (diff)
Move SPINNER variable declaration and add LFS_FS for LFS filesystem variable to be used in setupdisk script.
-rw-r--r--env.sh38
1 files changed, 20 insertions, 18 deletions
diff --git a/env.sh b/env.sh
index e3df8e1..7a690e4 100644
--- a/env.sh
+++ b/env.sh
@@ -6,39 +6,41 @@ PS1='\u:\w\$ '
set +h
umask 022
-LFS=/mnt/lfs
-LC_ALL=POSIX
-LFS_TGT=$(uname -m)-lfs-linux-gnu
+LFS="/mnt/lfs"
+LC_ALL="POSIX"
+LFS_TGT="$(uname -m)"-lfs-linux-gnu
PATH=/usr/bin
-if [ ! -L /bin ]; then PATH=/bin:${PATH}; fi
-PATH=${LFS}/tools/bin:${PATH}
-CONFIG_SITE=${LFS}/usr/share/config.site
+if [ ! -L /bin ]; then PATH="/bin:${PATH}"; fi
+PATH="${LFS}/tools/bin:${PATH}"
+CONFIG_SITE="${LFS}/usr/share/config.site"
# End book environment settings
# LFS Version being built
-LFS_VER=LFS_10_1
+LFS_VER="LFS_10_1"
# Disk where LFS partition will exist / or exists
-LFS_DISK=/dev/sdb
+LFS_DISK="/dev/sdb"
# Partition number where LFS will exist / or exists
-LFS_PART=1
+LFS_PART="1"
+
+# Filesystem to use for LFS
+LFS_FS="EXT4"
# LFS User password (not used at this time)
-LFS_PWD=lfs
+LFS_PWD="lfs"
# Get number of online processors
-NUMPROCS=$(getconf _NPROCESSORS_ONLN)
-numjobs=$((NUMPROCS * 2 - 1))
+NUMPROCS="$(getconf _NPROCESSORS_ONLN)"
+numjobs="$((NUMPROCS * 2 - 1))"
# Make flags for multiple jobs
MAKEFLAGS="-j ${numjobs}"
-unset numjobs
+# Set spinner type (0-12 in funtions.sh)
+SPINNER="0"
export PS1 LC_ALL LFS LFS_TGT PATH CONFIG_SITE
-export LFS_VER LFS_DISK LFS_PART LFS_PWD NUMPROCS MAKEFLAGS
-
-
-# Set spinner type (0-12 in funtions.sh)
-SPINNER=0
+export LFS_VER LFS_DISK LFS_FS LFS_PART LFS_PWD NUMPROCS MAKEFLAGS
export SPINNER
+
+unset numjobs