[jhalfs] branch trunk updated: Always run "teardown" after chroot

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <169470043022.9739.8731842867790341664@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new c552eab  Always run "teardown" after chroot
c552eab is described below

commit c552eabe636ca27aa33c04c083a27c51c2958ffe
Author: Pierre Labastie <[email protected]>
AuthorDate: Thu Sep 14 16:03:37 2023 +0200

    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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.