Google
 

« メールを抜き出す。 | メイン | 最近読んだ本4 »

2008年03月04日

●Kernel再構築

1.Kernelソースの取得

ftp://ftp.in2p3.fr/pub/linux/redhat/updates/enterprise/4AS/en/os/SRPMS/kernel-2.6.9-67.0.4.EL.src.rpm


2.Kernelソースの展開

rpm -ivh kernel-2.6.9-67.0.4.EL.src.rpm
cd /usr/src/redhat/SPECS

rpmbuild -bp --target i686 kernel-2.6.spec

/usr/src/redhat/BUILD/kernel-*
以下にソースコードが展開されます。


cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9
make mrproper
make oldconfig
make menuconfig
make
make modules_install
make install


cd /boot
mv initrd-KERNEL-VERSION initrd-KERNEL-VERSION.old kernel

/sbin/mkinitrd /boot/initrd-2.6.9-67.0.4.EL.img 2.6.9-67.0.4.EL

トラックバックURL

このエントリーのトラックバックURL:
http://www.fatcat-hosting.net/mt-tb.cgi/125