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

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

如果要给内核打补丁的话,首先要下载内核及其补丁文件,然后用patch给内核打补丁,但是有个问题搞不懂,patch后面接的参数p0、p1、p2是什么意思?还有我用这个命令给系统打补丁的时候提示很多要按‘y’或者‘n’的东东出来,本人英文水平有限看不懂啥意思!!?
就像下面这样
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?
Apply anyway?
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:
页: [1]
查看完整版本: 给内核打补丁patch命令问题?