What script is included with the kernel source to patch a kernel?
A.
patch
B.
patch-kernel
C.
apply-patch
D.
update-kernel
Explanation:
See
http://book.opensourceproject.org.cn/distrib/ubuntu/unleashed/opensource/0672329093/ch35lev
1sec6.html
It is possible to patch a kernel to the newest Linux kernel version as opposed to downloading the
entire source code. This choice can be beneficial for those who are not using a high-speedbroadband connection. (A typical compressed kernel source file is nearly 30MB for a download time
of about 10 minutes on a 512Kb DSL connection; adjust accordingly for your connection.) Whether
you are patching existing sources or downloading the full source, the end results will be identical.
Patching the kernel is not a mindless task. It requires the user to retrieve all patches from her
current version to the version she wants to upgrade to. For example, if you are currently running
2.6.1 (and have those sources) and want to upgrade to 2.6.8, you must retrieve the 2.6.2 and 2.6.3
patch sets, and so on. Once downloaded, these patches must be applied in succession to upgrade to
2.6.8. This is more tedious than downloading the entire source, but useful for those who keep up
with kernel hacking and want to perform incremental upgrades to keep their Linux kernel as up-todate as possible.
To patch up to several versions in a single operation, you can use the patch-kernel script located in
the kernel source directory for the kernel version you currently use. This script applies all necessary
version patches to bring your kernel up to the latest version.
The format for using the patch-kernel script looks like this:
patch-kernel source_dir patch_dir stopversion
B.
patch-kernel