kernel再コンパイル

このページは検証中の為、このまま実行しても100%くらいの確立でかーねるくんがぱにっくになりますwww

メモ

CentOS5.5 カーネルアップグレード
・ソースファイルをダウンロード(2011年3月4日 最新バージョン 2.6.37.2)
  http://www.kernel.org/

・tar xvjf linux-2.6.37.2.tar.bz2
・cd linux-2.6.37.2
・make mrproper
・cp /boot/config-2.6.18-194.32.1.el5 .config
・make oldconfig
  とりあえず全てENTERでデフォルト設定
・make menuconfig
  [General setup]
    >[enable deprecated sysfs features to support old userspace tools] にチェック
  [Networking support]
    >[Networking options]
      >[Network packet filtering framework (NetFilter)]
        >[Core Netfilter Configuration] の中のすべての項目
        >[IP: Netfilter Configuration] の中のすべての項目
        >[IPv6: Netfilter Configuration] の中のすべての項目
        >[IP virtual server support] の中のすべての項目
  [Device Drivers]
    >[*][Multiple devices driver support (RAID and LVM)]
      >[M][Device mapper support] デフォルトではMになってるので*に変更
        以下の関連ありそうな項目も基本[M]を立ててる。Mが立たない場合は*で空白にはしない
・make rpm
  40~50分くらいかかるのね
・cd /usr/src/redhat/RPMS/x86_64
・rpm -ivh kernel-2.6.37.2-1.x86_64.rpm
・mkinitrd /boot/initrd-2.6.37.2.img 2.6.36.2
・vi /etc/grub.conf
  以下を追加
   title CentOS (2.6.37.2)
     root (hd0,0)
     kernel /vmlinuz-2.6.37.2 ro root=/dev/VolGroup00/LogVol00 
     initrd /initrd-2.6.37.1.img
・reboot


だめぽーん

imgファイルの中身を確認する方法
  gzip -dc /boot/initrd-2.6.37.2.el5.renbird.img | cpio --list|grep "dm-"
linux/kernel.txt · 最終更新: 2011/03/04 09:18 by miyako
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0