From 71ccef2197237e7339352069a6b5f35a60599745 Mon Sep 17 00:00:00 2001
From: William Harrington <kb0iic@berzerkula.org>
Date: Mon, 12 Apr 2021 17:37:48 -0500
Subject: Add chapter 10 section.

---
 lfs.sh | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

(limited to 'lfs.sh')

diff --git a/lfs.sh b/lfs.sh
index a6b2abc..9362a26 100755
--- a/lfs.sh
+++ b/lfs.sh
@@ -229,7 +229,7 @@ sleep 3
 # Create chapter9 log directory as non root user
 mkdir -p "${LFS}"/sources/log/chapter9
 
-# Enter CHROOT for chapter 9,10
+# Enter CHROOT for chapter 9
 sudo chroot "${LFS}" /usr/bin/env -i \
 	HOME=/root \
 	TERM="${TERM}" \
@@ -244,3 +244,24 @@ retval=$?
 
 printf "%b" "\n${CYN}EXITED ${RED}CHROOT${RST} ENVIRONMENT...${RST}\n"
 
+# Create chapter10 log directory as non root user
+mkdir -p "${LFS}"/sources/log/chapter10
+
+# Enter CHROOT for chapter 10
+sudo chroot "${LFS}" /usr/bin/env -i \
+	HOME=/root \
+	TERM="${TERM}" \
+	PS1='(lfs chroot) \u:\w\$ ' \
+	PATH=/bin:/usr/bin:/sbin:/usr/sbin \
+	NUMPROCS="${NUMPROCS}" \
+	MAKEFLAGS="${MAKEFLAGS}" \
+	NINJAJOBS="${NINJAJOBS}" \
+	SPINNER="${SPINNER}" \
+	LFS_DISK="${LFS_DISK}" \
+	LFS_PART="${LFS_PART}" \
+	LFS_FS="${LFS_FS}" \
+	/bin/bash --login +h -c "/sources/insidechroot.sh 10"
+retval=$?
+
+printf "%b" "\n${CYN}EXITED ${RED}CHROOT${RST} ENVIRONMENT...${RST}\n"
+
-- 
cgit v1.2.3-54-g00ecf