From 1cd3ffd75ec6ccd7bdd344ae7eeb9e8ee006b6e7 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Mon, 22 Mar 2021 13:38:10 -0500 Subject: Add lines for preparing chroot and entering chroot. Add commented lines for chapter 6 cleanup and backup. --- lfs.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lfs.sh') diff --git a/lfs.sh b/lfs.sh index 7d28cfa..57415f0 100755 --- a/lfs.sh +++ b/lfs.sh @@ -73,3 +73,20 @@ for package in m4 ncurses bash coreutils diffutils file findutils gawk grep gzip exit 1 fi done + +#source chapter6/cleanup.sh +#source chapter6/backup.sh + +chmod ugo+x preparechroot.sh +chmod ugo+x insidechroot.sh +echo -e "${CYN}PREPARING CHROOT ENVIRONMENT...${RST}" +sudo ./preparechroot.sh ${LFS} +echo -e "${CYN}ENTERING CHROOT ENVIRONMENT...${RST}" +sleep 3 + +sudo chroot "${LFS}" /usr/bin/env \ + HOME=/root \ + TERM=${TERM} \ + PS1='(lfs chroot) \u:\w\$ ' \ + PATH=/bin:/usr/bin:/sbin:/usr/sbin \ + /bin/bash --login +h -c "/sources/insidechroot.sh" -- cgit v1.2.3-54-g00ecf