diff --git a/chapter02/hostreqs.xml b/chapter02/hostreqs.xml
index 78a9c0561..192eed8c1 100644
--- a/chapter02/hostreqs.xml
+++ b/chapter02/hostreqs.xml
@@ -203,7 +203,7 @@ ver_check()
ver_kernel()
{
- kver=$(uname -r | grep -E -o '[0-9\.]+')
+ kver=$(uname -r | grep -E -o '^[0-9\.]+')
if printf '%s\n' $1 $kver | sort --version-sort --check &>/dev/null
then
printf "OK: Linux Kernel $kver >= $1\n"; return 0;
diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml
index 1cc02a139..0815b70c8 100644
--- a/chapter10/kernel.xml
+++ b/chapter10/kernel.xml
@@ -45,6 +45,38 @@
in the kernel source tree for alternative methods to the way this book
configures the kernel.
+
+
+ Building the linux kernel for the first time is one of the most
+ challenging tasks in LFS. Getting it right depends on the specific
+ hardware for the target system and your specific needs. There are
+ almost 12,000 configuration items that are available for the kernel
+ although only about a third of them are needed for most computers. The
+ LFS editors recommend that users not familiar with this process follow
+ the procedures below fairly closely. The objective is to get an
+ initial system to a point where you can log in at the command line when
+ you reboot later in . At his point
+ optimization and customization is not a goal.
+
+
+
+
+ For general information on kernel configuration see . Additional information
+ about configuring and building the kernel can be found at .
+ These references are a bit
+ dated, but still give a reasonable overview of the process.
+
+
+
+ If all else fails, you can ask for help on the lfs-support
+ mailing list. Note that subscribing is required in order for the list
+ to avoid spam.
+
+
+
Prepare for compilation by running the following command:
make mrproper
@@ -88,13 +120,6 @@
- For general information on kernel configuration see . BLFS has some information
- regarding particular kernel configuration requirements of packages outside
- of LFS at . Additional
- information about configuring and building the kernel can be found at
-
A good starting place for setting up the kernel configuration is to
@@ -169,6 +194,15 @@ File systems --->
[*] Inotify support for userspace [CONFIG_INOTIFY_USER]
Pseudo filesystems --->
[*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]
+
+ If the partition for the LFS system is in a NVME SSD (i. e. the
+ device node for the partition is /dev/nvme*
+ instead of /dev/sd*), enable NVME support or
+ the LFS system won't boot:
+
+ Device Drivers --->
+ NVME Support --->
+ <*> NVM Express block device [CONFIG_BLK_DEV_NVME]
@@ -176,18 +210,18 @@ File systems --->
required, it is highly recommended by the systemd developers.
- There are several other options that may be desired
+ There are several other options that may be desired
depending on the requirements for the system. For a list of options needed
for BLFS packages, see the BLFS
- Index of Kernel Settings
- (&lfs-root;blfs/view/&short-version;/longindex.html#kernel-config-index).
+ Index of Kernel Settings.
If your host hardware is using UEFI and you wish to boot the
LFS system with it, you should adjust some kernel configuration
following
- the BLFS page.
+ the BLFS page even if you'll use the
+ UEFI bootloader from the host distro.