http://download.fedora.redhat.com/pub/fedora/linux/core/6/source/SRPMS/
I also needed the unifdef srpm, and built it first:
rpmbuild --rebuild unifdef*.src.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/unidef-1*
And then I built the kernel:
rpm -ivh kernel*.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bp
--target i386
kernel-2.6.speccd /usr/src/redhat/BUILD/kernel-2.6.19/linux-2.6.19.i386
make mrproper
cp configs/kernel-2.6.19-i686.config .config
make
make modules_install
make install
然后重启,系统会显示:
Enforcing mode requested but no policy loaded. Halting now."
Kernel panic: Attempted to kill init!
解决办法:在grub菜单中增加enforcing=0
vi /etc/grub.conf
kernel /vmlinuz-2.6.19-prep ro root=LABEL=/ rhgb quiet enforcing=0
改变默认的启动选项:
vi /boot/grub/menu.lst
中的default字段,如default 3,即把列表中的第4个OS作为默认
现在我们把它改成0
保存。
OK,完成
没有评论:
发表评论