LX0-103 · Question #27
What script is included with the kernel source to patch a kernel?
The correct answer is B. patch-kernel. The patch-kernel script is shipped with the Linux kernel source tree specifically to automate applying incremental patches to a kernel source tree.
Question
What script is included with the kernel source to patch a kernel?
Options
- Aupdate-kernel
- Bpatch-kernel
- Capply-patch
- Dpatch
How the community answered
(23 responses)- B96% (22)
- D4% (1)
Why each option
The patch-kernel script is shipped with the Linux kernel source tree specifically to automate applying incremental patches to a kernel source tree.
update-kernel is not a script included with the kernel source; it is a distribution-specific package management command found on some Linux distros.
The patch-kernel script, located in the scripts/ directory of the Linux kernel source, automates downloading and applying incremental kernel patches. It calls the standard patch utility internally but provides a higher-level workflow tailored to kernel version management, making it the canonical tool bundled with the kernel source for this purpose.
apply-patch is not a script included in the standard kernel source tree.
patch is a standalone GNU utility that applies diff files, but it is not the script bundled inside the kernel source tree for patching kernels.
Concept tested: Linux kernel source patch-kernel script usage
Source: https://www.kernel.org/doc/html/latest/process/applying-patches.html
Topics
Community Discussion
No community discussion yet for this question.