%general-entities; ]> Linux-&linux-version; Linux boot Installation of the kernel Here a temporary cross-compiled kernel will be built. When configuring it, select the minimal amount of options required to can boot the target machine and build the final system. I.e., not support for sound, printers, etc. will be needed. Also, try to avoid the use of modules if possible, and don't use the resulting kernel image for production systems. If your keyboard isn't an US one, you may want to build the proper keymap for your keyboard layout inside the kernel. Do it by running the following command: Also, ensure that the kernel does not attempt to pass hotplugging events to userspace until userspace specifies that it is ready: cp kernel/kmod.c{,.bak} sed 's@/sbin/hotplug@/bin/true@' kernel/kmod.c.bak > kernel/kmod.c Configure the kernel via a menu-driven interface: make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- menuconfig make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- If the use of kernel modules can't be avoided, an ${LFS}/etc/modprobe.conf file may be needed. Information pertaining to modules and kernel configuration is located in the kernel documentation in the Documentation directory of the kernel sources tree. The modprobe.conf man page may also be of interest. make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- \ INSTALL_MOD_PATH=${LFS} modules_install cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-version; cp System.map ${LFS}/boot/System.map-&linux-version; cp .config ${LFS}/boot/config-&linux-version; <para>Details on this package are located in <xref linkend="contents-kernel" role="."/></para> </sect2> </sect1>