From 3b27f9376431be4add70a47315769c4bf8c2a848 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 8 Sep 2023 16:50:05 +0200 Subject: [PATCH] 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" make mrproper cp -v ../kernel-config .config + timeout 60 make oldconfig ||\ + { echo kernel config is not up to date; exit 124; }