aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-08 10:06:27 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-08 10:06:27 -0500
commitd9231dac368a664dd9d2304a8b70b8b79fa9dee5 (patch)
treeeafb5eae40548d22dcd0abb2fbe74503ee74e9c5
parent87354eeb032796d3e1c7900f083cf841aaa4f6c1 (diff)
Add -i to env command during chroot.
-rwxr-xr-xlfs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lfs.sh b/lfs.sh
index ac10c67..cf96dca 100755
--- a/lfs.sh
+++ b/lfs.sh
@@ -151,7 +151,7 @@ sleep 3
# Create chapter7 log directory as non root user
mkdir -p "${LFS}"/sources/log/chapter7
-sudo chroot "${LFS}" /usr/bin/env \
+sudo chroot "${LFS}" /usr/bin/env -i \
HOME=/root \
TERM="${TERM}" \
PS1='(lfs chroot) \u:\w\$ ' \
@@ -182,7 +182,7 @@ 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 \
+sudo chroot "${LFS}" /usr/bin/env -i \
HOME=/root \
TERM="${TERM}" \
PS1='(lfs chroot) \u:\w\$ ' \