[jhalfs] branch trunk updated: Apply a timeout to kernel config in LFS

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <169418538147.19285.3413334159856652681@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 3b27f93  Apply a timeout to kernel config in LFS
3b27f93 is described below

commit 3b27f9376431be4add70a47315769c4bf8c2a848
Author: Pierre Labastie <[email protected]>
AuthorDate: Fri Sep 8 16:50:05 2023 +0200

    Apply a timeout to kernel config in LFS
    
    If the kernel-config file is not up to date (missing options or
    whatever), the kernel "make" will hang, waiting for input. So
    run "make oldconfig" explicitly, with a timeout.
    
    Fixes: #1736
---
 LFS/lfs.xsl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl
index c6075d6..782e9ee 100644
--- a/LFS/lfs.xsl
+++ b/LFS/lfs.xsl
@@ -415,6 +415,8 @@ echo -e "\n\nTotalseconds: $SECONDS\n"
         <xsl:text>make mrproper&#xA;</xsl:text>
         <xsl:if test="ancestor::sect1[@id='ch-bootable-kernel']">
           <xsl:text>cp -v ../kernel-config .config&#xA;</xsl:text>
+          <xsl:text>timeout 60 make oldconfig ||\&#xA;</xsl:text>
+          <xsl:text>{ echo kernel config is not up to date; exit 124; }&#xA;</xsl:text>
         </xsl:if>
       </xsl:when>
 <!-- test instructions -->

-- 
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.