LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 578|回复: 1

怎样给内核打补丁??

[复制链接]
发表于 2004-9-26 20:48:08 | 显示全部楼层 |阅读模式
升级后的内核为2.6.7,从www.kernel.org下载patch-2.6.8.bz2

# cp patch-2.6.8.bz2 /usr/src/linux-2.6.7
# bzip2 -dc patch-2.6.8.bz2 | patch -p0

等待一会儿后,就出现了:

[root@AMD-SERVER root]# bzip2 -dc patch-2.6.8.bz2 | patch -p0
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru a/CREDITS b/CREDITS
|--- a/CREDITS  2004-08-13 22:39:03 -07:00
|+++ b/CREDITS  2004-08-13 22:39:03 -07:00
--------------------------
File to patch:



这里应该怎样继续下去?
发表于 2004-9-26 23:30:04 | 显示全部楼层
cd /usr/src/linux-2.6.7
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表