2.5. Building and installing the new kernel

After you have configured the kernel, build and install a new kernel image. There are slight variations for different architectures, but the general steps are the same. For example, on Intel® machines you might run lilo to install the new kernel image. On S/390 machines, you might run zipl to install the new kernel image. The following instructions are based on an installation using an Intel machine.

  1. Build the kernel:

    make dep clean bzImage modules modules_install
  2. Copy the new kernel to the /boot directory.

    cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-evms

    NoteNOTE
     

    The previous command assumes the file to be named vmlinuz-evms, you can substitute another name.

  3. Open the file for the boot loader. The LILO boot loader information is in /etc/lilo.conf. The GRUB boot loader information is in /boot/menu.list.

  4. Update the boot loader information as follows:

    image=/boot/vmlinuz-evms
    	label=EVMS

    NoteNOTE
     

    Currently, LILO does not support placing the /boot filesystem on a Device Mapper device. Thus, /boot must be mounted through the traditional partition device.

  5. Run your boot loader to install the new kernel image.

    NoteNOTE
     

    If you installed your kernel as modules, skip to Section 2.7.

  6. Reboot your machine and choose the new kernel image to run with EVMS support.