From d9231dac368a664dd9d2304a8b70b8b79fa9dee5 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 8 Apr 2021 10:06:27 -0500 Subject: Add -i to env command during chroot. --- lfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lfs.sh') 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\$ ' \ -- cgit v1.2.3-54-g00ecf