@@ -262,9 +262,11 @@ Compiling the kernel
262262 - Make sure you have at least gcc 5.1 available.
263263 For more information, refer to :ref: `Documentation/process/changes.rst <changes >`.
264264
265- - Do a ``make `` to create a compressed kernel image. It is also
266- possible to do ``make install `` if you have lilo installed to suit the
267- kernel makefiles, but you may want to check your particular lilo setup first.
265+ - Do a ``make `` to create a compressed kernel image. It is also possible to do
266+ ``make install `` if you have lilo installed or if your distribution has an
267+ install script recognised by the kernel's installer. Most popular
268+ distributions will have a recognized install script. You may want to
269+ check your distribution's setup first.
268270
269271 To do the actual install, you have to be root, but none of the normal
270272 build should require that. Don't take the name of root in vain.
@@ -301,32 +303,51 @@ Compiling the kernel
301303 image (e.g. .../linux/arch/x86/boot/bzImage after compilation)
302304 to the place where your regular bootable kernel is found.
303305
304- - Booting a kernel directly from a floppy without the assistance of a
305- bootloader such as LILO, is no longer supported.
306-
307- If you boot Linux from the hard drive, chances are you use LILO, which
308- uses the kernel image as specified in the file /etc/lilo.conf. The
309- kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or
310- /boot/bzImage. To use the new kernel, save a copy of the old image
311- and copy the new image over the old one. Then, you MUST RERUN LILO
312- to update the loading map! If you don't, you won't be able to boot
313- the new kernel image.
314-
315- Reinstalling LILO is usually a matter of running /sbin/lilo.
316- You may wish to edit /etc/lilo.conf to specify an entry for your
317- old kernel image (say, /vmlinux.old) in case the new one does not
318- work. See the LILO docs for more information.
319-
320- After reinstalling LILO, you should be all set. Shutdown the system,
306+ - Booting a kernel directly from a storage device without the assistance
307+ of a bootloader such as LILO or GRUB, is no longer supported in BIOS
308+ (non-EFI systems). On UEFI/EFI systems, however, you can use EFISTUB
309+ which allows the motherboard to boot directly to the kernel.
310+ On modern workstations and desktops, it's generally recommended to use a
311+ bootloader as difficulties can arise with multiple kernels and secure boot.
312+ For more details on EFISTUB,
313+ see "Documentation/admin-guide/efi-stub.rst".
314+
315+ - It's important to note that as of 2016 LILO (LInux LOader) is no longer in
316+ active development, though as it was extremely popular, it often comes up
317+ in documentation. Popular alternatives include GRUB2, rEFInd, Syslinux,
318+ systemd-boot, or EFISTUB. For various reasons, it's not recommended to use
319+ software that's no longer in active development.
320+
321+ - Chances are your distribution includes an install script and running
322+ ``make install `` will be all that's needed. Should that not be the case
323+ you'll have to identify your bootloader and reference its documentation or
324+ configure your EFI.
325+
326+ Legacy LILO Instructions
327+ ------------------------
328+
329+
330+ - If you use LILO the kernel images are specified in the file /etc/lilo.conf.
331+ The kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or
332+ /boot/bzImage. To use the new kernel, save a copy of the old image and copy
333+ the new image over the old one. Then, you MUST RERUN LILO to update the
334+ loading map! If you don't, you won't be able to boot the new kernel image.
335+
336+ - Reinstalling LILO is usually a matter of running /sbin/lilo. You may wish
337+ to edit /etc/lilo.conf to specify an entry for your old kernel image
338+ (say, /vmlinux.old) in case the new one does not work. See the LILO docs
339+ for more information.
340+
341+ - After reinstalling LILO, you should be all set. Shutdown the system,
321342 reboot, and enjoy!
322343
323- If you ever need to change the default root device, video mode,
324- etc. in the kernel image, use your bootloader's boot options
325- where appropriate. No need to recompile the kernel to change
326- these parameters.
344+ - If you ever need to change the default root device, video mode, etc. in the
345+ kernel image, use your bootloader's boot options where appropriate. No need
346+ to recompile the kernel to change these parameters.
327347
328348 - Reboot with the new kernel and enjoy.
329349
350+
330351If something goes wrong
331352-----------------------
332353
0 commit comments