|
我添加了几个系统调用函数,重新编译了内核。grub如何配置能够启动到信内核阿?
下面是我修改后的文件,但是启动的时候好像说找不到什么文件之类的。我把生成的bzImage考到boot下面了。
#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=2
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.21)
root (hd0,0)
kernel /vmlinuz-2.6.21 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21.img
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-8.el5.img
/////////////////////////////下面是我添加 的~~~
title my_linux
root (hd0,9)
kernel boot/bzImage ro root=/dev/hda10 |
|