Saturday, July 21, 2012

Compiling Linux kernel (Cheatsheet)

I'm not sure if these instructions are distribution specific.   Currently I'm testing this with LinuxMint13 with Cinnamon.

To probe disks on the system for other operating systems:
# os-probe

Search the new kernel images and update the grub configuration
# update-grub

But in fact, kernel make install will automatically run update-grub..
# cd LINUX_SOURCE_TREE
# cp /boot/config-`uname -r` .config
# make menuconfig
# make -j4
# make modules
# make modules_install
# make install

Reboot! (Don't blame me if your machine doesn't boot!)

Installing new kernel (Debian/Ubuntu/Mint)

Should be quite easy?

 

Move kernel images and initrd to /boot

To probe disks on the system for other operating systems:

# os-probe

Search the new kernel images and update the grub configuration

# update-grub

Reboot!