aboutsummaryrefslogtreecommitdiffstats
path: root/lfs.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-01 15:39:20 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-01 15:39:20 -0500
commitb5a6b72fc21d9f54b626cc8be5536b179125efd4 (patch)
treef35a8ae9e41b2e8116272f8d82ac3cd1c6243702 /lfs.sh
parent0e1cd3eda02f349022e8197ffe963ec148de8f31 (diff)
Add SPINNER to chroot variables for spinnertype to be used.
Diffstat (limited to 'lfs.sh')
-rwxr-xr-xlfs.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/lfs.sh b/lfs.sh
index 0dea3a0..e31460a 100755
--- a/lfs.sh
+++ b/lfs.sh
@@ -125,10 +125,10 @@ source chapter6/backup.sh
chmod ugo+x preparechroot.sh
chmod ugo+x insidechroot.sh
-printf "%b" "${CYN}PREPARING ${RED}CHROOT${CYN} ENVIRONMENT...${RST}\n"
+printf "%b" "\n${CYN}PREPARING ${RED}CHROOT${CYN} ENVIRONMENT...${RST}\n"
sudo ./preparechroot.sh "${LFS}"
-printf "%b" "${CYN}ENTERING ${RED}CHROOT${CYN} ENVIRONMENT...${RST}\n"
+printf "%b" "\n${CYN}ENTERING ${RED}CHROOT${CYN} ENVIRONMENT...${RST}\n"
sleep 3
sudo chroot "${LFS}" /usr/bin/env \
@@ -138,11 +138,12 @@ sudo chroot "${LFS}" /usr/bin/env \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
NUMPROCS="${NUMPROCS}" \
MAKEFLAGS="${MAKEFLAGS}" \
+ SPINNER="${SPINNER}" \
TESTERUID="$(id -u)" \
/bin/bash --login +h -c "/sources/insidechroot.sh 7"
retval=$?
-printf "%b" "${CYN}EXITED ${RED}CHROOT${RST} ENVIRONMENT...${RST}\n"
+printf "%b" "\n${CYN}EXITED ${RED}CHROOT${RST} ENVIRONMENT...${RST}\n"
# Cleanup and Backup if chapter 7 successfully finished
if [ "$retval" -eq 7 ]; then
printf "%b" "${GRN}Unmounting Virtual Kernel Filesystems...\n"
@@ -162,6 +163,9 @@ fi
# Mount virtual kernel filesystems after cleanup and backup
source mountvirtfs.sh
+printf "%b" "\n${CYN}ENTERING ${RED}CHROOT${CYN} ENVIRONMENT...${RST}\n"
+sleep 3
+
# Enter CHROOT for chapter 8, 9 and 10
sudo chroot "${LFS}" /usr/bin/env \
HOME=/root \
@@ -170,7 +174,8 @@ sudo chroot "${LFS}" /usr/bin/env \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
NUMPROCS="${NUMPROCS}" \
MAKEFLAGS="${MAKEFLAGS}" \
+ SPINNER="${SPINNER}" \
TESTERUID="$(id -u)" \
/bin/bash --login +h -c "/sources/insidechroot.sh 8"
-printf "%b" "${CYN}EXITED ${RED}CHROOT${RST} ENVIRONMENT...${RST}\n"
+printf "%b" "\n${CYN}EXITED ${RED}CHROOT${RST} ENVIRONMENT...${RST}\n"