中国Linux公社论坛's Archiver

roofers 发表于 2008-9-6 21:52

给内核打补丁patch命令问题?

如果要给内核打补丁的话,首先要下载内核及其补丁文件,然后用patch给内核打补丁,但是有个问题搞不懂,patch后面接的参数p0、p1、p2是什么意思?还有我用这个命令给系统打补丁的时候提示很多要按‘y’或者‘n’的东东出来,本人英文水平有限看不懂啥意思!!?
就像下面这样[code]
dwj@beyond:/tmp$ patch -p0 < /home/dwj/Downloads/patch-2.6.26.3
The next patch would delete the file a/Documentation/ftrace.txt,
which does not exist!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 1364
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Documentation/networking/udplite.txt b/Documentation/networking/udplite.txt
|index 3870f28..855d8da 100644
|--- a/Documentation/networking/udplite.txt
|+++ b/Documentation/networking/udplite.txt
--------------------------
File to patch:
[/code]

页: [1]

Powered by Discuz! Archiver 6.1.0F  © 2001-2007 Comsenz Inc.