Posted 2011/03/18
Compiling a kernel the Redhat way
One of our students was having trouble making a custom kernel for our test cluster. I wrote him a howto for making Kernel RPMs.
Unpack the kernel: cp linux-2.6.38.tar.bz2 /usr/src/ cd /usr/src/ bzip2 -d linux-2.6.38.tar.bz2 tar -xf linux-2.6.38.tar ln -s linux-2.6.38 linux cd linux-2.6.38 Copy old config: cp /boot/config-2.6.25-14.fc9.x86_64 .config make oldconfig make menuconfig Build and install RPM: make rpm cd /usr/src/redhat/RPMS/x86_64/ rpm -ivh --nodeps kernel-2.6.38default-1.x86_64.rpm Make RAM disk: mkinitrd /boot/initrd-2.6.38-default.img 2.6.38-default Configure grub: cd /boot/ vi grub/menu.lst