Nimbin[12]?Mirrors & Forks / jhalfs / commits / c552eab

jhalfs git · trunk

jhalfs LFS build automation (mirror)

lfs mirror bash · first commit 2005-09-11 · last commit 2024-02-13 (2 years ago) · synced 3 days ago · upstream: git.linuxfromscratch.org/jhalfs

Python 78.4% Shell 19.8% Makefile 1.8%
git clone https://git.christianimmanuel.de/mirrors-forks/jhalfs.gitwget https://git.christianimmanuel.de/mirrors-forks/jhalfs/archive/jhalfs.tar.gz

Always run "teardown" after chroot

Pierre Labastie · 2023-09-14 14:03 · c552eabe636ca27aa33c04c083a27c51c2958ffe

If the shell exits with an error, teardown is not run in target
chroot, which may lead to unwanted effects, such as preventing
unmounting the $BUILD_DIR. Tell make to ignore the error.
 LFS/master.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/LFS/master.sh b/LFS/master.sh
index 7e4e919..2aa9843 100644
--- a/LFS/master.sh
+++ b/LFS/master.sh
@@ -437,11 +437,11 @@ fi
     cat << EOF
 
 chroot1: devices
-	sudo \$(CHROOT1)
+	-sudo \$(CHROOT1)
 	\$(MAKE) teardown
 
 chroot: devices
-	sudo \$(CHROOT1)
+	-sudo \$(CHROOT1)
 	\$(MAKE) teardown
 
 SETUP:        $SETUP_TGT