[jhalfs] branch trunk updated: Clarify message when kernel config is out of date

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Fri, 27 Jun 2025 06:32:02 +0000
Newsgroups gmane.linux.lfs.automated
Message-ID <175100592261.3341.12123803643742870013@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 c68cfbf  Clarify message when kernel config is out of date
c68cfbf is described below

commit c68cfbff2d4a78bd08cc10fa6efe28a9ca58dcef
Author: Pierre Labastie <[email protected]>
AuthorDate: Fri Jun 27 08:26:11 2025 +0200

    Clarify message when kernel config is out of date
    
    When importing the user provided kernel config, we test that it
    works by running "make oldconfig" with a timeout. If the timeout
    occurs, it means that the configurtion is not complete and the
    build exits with an error. Up to now, the error message was a
    cryptic "kernel configuration is not up to date". Change the
    message so that the user understands what is going on and how to
    fix the issue.
    
    Reported on
    https://github.com/automate-lfs/jhalfs/issues/23
    Fixes this issue
---
 LFS/lfs.xsl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl
index a24b2f5..905149e 100644
--- a/LFS/lfs.xsl
+++ b/LFS/lfs.xsl
@@ -439,7 +439,13 @@ echo -e "\n\nTotalseconds: $SECONDS\n"
         <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:text>{ echo kernel config is not complete and cannot be used\!
+echo You should enter chroot '("make -C &lt;build_dir&gt;/jhalfs chroot")'
+echo then run '"make oldconfig" in /sources/linux-&lt;version&gt;,'
+echo answer the questions, and save the resulting configuration,
+echo then copy the resulting .config to /sources/kernel-config,
+echo exit chroot and restart the build.
+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