カーネル再構築


  • Makefileの編集(ディストリビューションにより異なる) RedHat系Linuxの場合は

    #export INSTALL_PATH=/boot コメントをはずす

# make mrproper

既存のコンフィグを読む

# make oldconfig

コンフィグを新規に作成する(下記の3つのうち一つを選ぶ)

# make config
# make menuconfig
# make xconfig
# make dep
# make clean
# make bzImage

installkernelを使う場合

# installkernel 2.4.xx-xxxx arch/i386/boot/bzImage System.map

手動でコピーする場合

# cp -p arch/i386/boot/bzImage /boot/vmlinuz-2.X.XX-Xxxxxx
# cp -p System.map /boot/System.map-2.X.XX-Xxxxxx
# make modules
# make modules_install
# cd /boot
# mkinitrd initrd-2.X.XX-Xxxxxx.img 2.X.XX-Xxxxxx

/boot/grub/grub.conf または /etc/lilo.confを編集して再起動