aboutsummaryrefslogtreecommitdiffstats
path: root/lfs.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 13:32:33 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 13:32:33 -0500
commit89ca137a22258537e9fd7e973a037fd0c50749bc (patch)
tree34fdb3cc96892b5d16aed72346edc2de4ded0180 /lfs.sh
parenteb35696e9b37f041ee4ddc606910abc5218fc9b4 (diff)
parent89b1f1e2805a93e4c334dd4c8551d82075489e2b (diff)
Merge branch 'cleanup' into chapter7
Diffstat (limited to 'lfs.sh')
-rwxr-xr-xlfs.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/lfs.sh b/lfs.sh
index 3936281..bdd8659 100755
--- a/lfs.sh
+++ b/lfs.sh
@@ -45,7 +45,7 @@ else
fi
# Create LFS directory if it doesn't exist
-printf "%b" "${GRN}Creating LFS directory at ${YLW}${LFS}${GRN}... ${RST}"
+printf "%b" "${GRN}Creating LFS directory at ${YLW}${LFS}${GRN}${RST}... "
if [[ -d "${LFS}" ]]; then
printf "%b" "${IGRN}EXISTS${RST}\n"
else
@@ -91,7 +91,7 @@ esac
# Copy scripts and csv files to LFS sources target
printf "%b" "${GRN}Copying required files to ${YLW}${LFS}/sources \
-${GRN}target directory... ${RST}"
+${GRN}target directory${RST}... "
if ! cp -rf ./*.sh chapter* ./*.csv "${LFS}/sources"; then
printf "%b" "${IRED}FAILED!${RST}\n"
@@ -132,7 +132,8 @@ for package in m4 ncurses bash coreutils diffutils file findutils gawk grep gzip
fi
done
-printf "%b" "\n${YLW}Chapter 6 ${GRN}cleanup and backup${RST}\n"
+printf "%b" "\n${IWHT}======= ${IYLW}Chapter 6 ${IGRN}Cleanup and Backup \
+${IWHT}=======${RST}\n"
source chapter6/cleanup.sh
source chapter6/backup.sh
@@ -140,10 +141,10 @@ source chapter6/backup.sh
chmod ugo+x preparechroot.sh
chmod ugo+x insidechroot.sh
-printf "%b" "\n${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" "\n${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 \
@@ -193,4 +194,4 @@ sudo chroot "${LFS}" /usr/bin/env \
TESTERUID="$(id -u)" \
/bin/bash --login +h -c "/sources/insidechroot.sh 8"
-printf "%b" "\n${CYN}EXITED ${RED}CHROOT${CYN} ENVIRONMENT...${RST}\n"
+printf "%b" "\n${CYN}EXITED ${RED}CHROOT${CYN} ENVIRONMENT${RST}...\n"