������RHEL 6.0��������8����֮��,CentOS 6.0���ڷ����ˡ�������Ҫ����һЩ����,��Ҫ2.6.30���ϵ��ں�,��װ��CentOS 5.5,�ں���2.6.18-194.el5��������߽�����CentOS�ں���������ε���������Ƚ�˳��������Ĺ�������:
����[root@localhost ~]# uname -r
����2.6.18-194.el5
����1.����linux-2.6.30�ں˰���/usr/srcĿ¼
����cd /usr/src
����wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.gz
����tar -xzvf linux-2.6.30.tar.bz2 -C /usr/src
����cd linux-2.6.30
����make mrproper �����������������������ļ�
����make menuconfig �ڲ˵�ģʽ��ѡ����Ҫ������ں�ģ��:
����networking support—>networking options—>network packet filtering framework(netfilter)
����(1).core netfilter configuration
����A ����”Netfilter connection tracking support” -m state���ģ�����������ģ���ѡ��û�С�
����B ��netbios name service protocal support(new) �����ģ��,��Ȼ��������iptables������ʱ�����
����C ����“Netfilter Xtables support (required for ip_tables)”
����(2).IP: Netfilter Configuration
����A �� “IPv4 connection tracking support (require for NAT)” �����ģ�顣
����B ����IP tables support (required for filtering/masq/NAT) ��
����C �� “Full NAT” �µ� “MASQUERADE target support” �� “REDIRECT target support” �����ģ��
����(3).����ģ����Ը����Լ�����Ҫ����ѡ��,���������Բο��ں������ֲ�.
����make clean ȷ�����ж�������������״̬.
����make bzImage �����ں��ļ�
����make modules ����ģ��
����make modules_install ��װģ��
����make install ��װ
����mkinitrd /boot/initrd_2.6.30.img 2.6.30 �����ں˰汾��ָ����������ӳ���ļ�
����cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.30
����cp /usr/src/linux-2.6.30/System.map /boot/System.map-2.6.30
����2.��/etc/grub.conf��������2.6.30����Ϣ,����default=1��Ϊdefault=0
����[root@localhost ~]# cat /etc/grub.conf
����# grub.conf generated by anaconda
����#
����# Note that you do not have to rerun grub after making changes to this file
����# NOTICE: You have a /boot partition. This means that
����# all kernel and initrd paths are relative to /boot/, eg.
����# root (hd0,0)
����# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
����# initrd /initrd-version.img
����#boot=/dev/sda
����default=0
����timeout=5
����splashimage=(hd0,0)/grub/splash.xpm.gz
����hiddenmenu
����title CentOS (2.6.18-194.el5)
����root (hd0,0)
����kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
����initrd /initrd-2.6.18-194.el5.img
����title CentOS (2.6.30)
����root (hd0,0)
����kernel /vmlinuz-2.6.30 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
����initrd /initrd-2.6.30.img
����3.�˲���û�в���,�����ᱨ��”insmod: error inserting ‘/lib/dm-region-hash.ko’: –1 File exits”,ԭ�����ظ��ˣ��������ϲ鵽�����ϣ�2.6.x�Ա����ں˻������Сbug,�Ҳ��Թ�����ֱ����������Ȼ�б���������Ȼ���Խ���ϵͳ�ġ�
����[root@localhost]cp /boot/initrd-2.6.30.img /tmp
����[root@localhost]cd /tmp/
����[root@localhost tmp]mkdir newinitrd
����[root@localhost tmp]cd newinitrd/
����[root@localhost newinitrd]zcat ../initrd-2.6.30.img |cpio -i
����[root@localhost newinitrd]vi init ɾ���ظ�����������:
����echo “Loading dm-region-hash.ko module”
����insmod /lib/dm-region-hash.ko
����[root@localhost newinitrd]# find .|cpio -c -o > ../initrd
����14765 blocks
����[root@localhost newinitrd]# cd ..
����[root@localhost tmp]# gzip -9 < initrd > initrd-2.6.30.img
����[root@localhost tmp]# ls
����gconfd-root initrd initrd-2.6.30.img mapping-root newinitrd scim-panel-socket:0-root
����[root@localhost tmp]# mv /boot/initrd-2.6.30.img /home/
����[root@localhost tmp]# cp initrd-2.6.30.img /boot/
����[root@localhost tmp]#reboot
����4.�����ɹ���,�ٿ����ںˣ���2.6.30��ok�ˡ�
����[root@localhost ~]# uname -r
����2.6.30