Wednesday, February 20, 2008

linux kernel installation notes

1. install from rpm
2. cd /boot
3. for n in vmlinuz-* ; do echo "Making $n"; w=`echo $n | sed "s/vmlinuz-//"` ; mkinitrd -f /boot/initrd-$w.img $w; done
rm -rf vmlinuz initrd.img
ln -s vmlinuz-2.6.23.1-mykernel vmlinuz
ln -s initrd-2.6.23.1-mykernel.img initrd.img

/boot/vmlinuz -> vmlimux-2.6.23.1-mykernel
/boot/initrd.img -> initrd-2.6.23.1-mykernel

/etc/grub.conf:
default=0
timeout=5
hiddenmenu
title MyKernel
root (hd0,0)
kernel /vmlinuz
initrd /initrd.img

0 Comments:

Post a Comment

<< Home