From 6d36d721750a2baa94da4278d5b4831740651b19 Mon Sep 17 00:00:00 2001
From: Xi Ruoyao <xry111@xry111.site>
Date: Thu, 12 Dec 2024 14:25:05 +0800
Subject: [PATCH] hostreq: Bump min-kernel to 5.4

4.19 LTS is EOL now.
---
 chapter02/hostreqs.xml | 2 +-
 general.ent            | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/chapter02/hostreqs.xml b/chapter02/hostreqs.xml
index 7375ca327..29504f066 100644
--- a/chapter02/hostreqs.xml
+++ b/chapter02/hostreqs.xml
@@ -100,7 +100,7 @@
       <xref linkend="chapter-building-system"/>, so the workarounds for
       older kernels are not enabled and the compiled
       <application>glibc</application> is slightly faster and smaller.
-      As at Feb 2024, &min-kernel; is the oldest kernel release still
+      As at Dec 2024, &min-kernel; is the oldest kernel release still
       supported by the kernel developers.  Some kernel releases older than
       &min-kernel; may be still supported by third-party teams, but they
       are not considered official upstream kernel releases; read
diff --git a/general.ent b/general.ent
index cad537e5b..d6bf13792 100644
--- a/general.ent
+++ b/general.ent
@@ -92,9 +92,11 @@
 <!ENTITY test-results    "&lfs-root;lfs/build-logs/&generic-version;/">
 <!ENTITY secadv          "&lfs-root;lfs/advisories/">
 
-<!-- 4.19 EOL is Dec 2024
-     so for LFS 12.3 we may consider moving to 5.4 -->
-<!ENTITY min-kernel      "4.19">
+<!-- 5.4 EOL is Dec 2025
+     so for LFS 12.5 we may consider moving to 5.10.
+     Keep an extra whitespace here to align the trailing "\" in glibc
+     configure command if y < 10 in x.y.  -->
+<!ENTITY min-kernel      "5.4 ">
 
 <!--
 <!ENTITY patches-rootd   "&lfs-root;patches/lfs/&generic-versiond;/">