From c552eabe636ca27aa33c04c083a27c51c2958ffe Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 14 Sep 2023 16:03:37 +0200 Subject: [PATCH] Always run "teardown" after chroot 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