201-450 Exam QuestionsBrowse all questions from this exam

201-450 Exam - Question 36


After the downloading patch-4.6.4.xz from http://kernel.org, what are the next steps to prepare the build of a version 4.6.4 Linux kernel? (Choose two.)

Show Answer
Correct Answer: BDE

To prepare the build of a version 4.6.4 Linux kernel after downloading patch-4.6.4.xz from http://kernel.org, you need to first uncompress the file using xz to get the uncompressed patch file. Next, you apply the patch file to the kernel source directory containing kernel version 4.6.0. Patches are not incremental, meaning the patch must be applied to the base version of the kernel source, in this case, 4.6.0, rather than any previous version like 4.6.3.

Discussion

12 comments
Sign in to comment
glorofarzOptions: CD
Jul 22, 2020

i'd appreciate help on that one, my book for LPIC-2, explicitly says that patches can only be applied to the kernels DIRECT predecessor, which would make C the correct answer, not E. ...then again in spite of said book referring to Version 450 of LPIC-2, it also uses kernel version 2.9.xxx as an example.... trying to understand the wording on kernel.org, but that does not really help me... ANY help would be highly (and urgently) appreciated....

khr
Aug 17, 2020

You seem to be right - quote: "A patch is a small text document containing a delta of changes between two different versions of a source tree."

DohecadiOptions: BD
Feb 14, 2022

B & D are correct. These patches are not incremental, meaning that for example the 4.7.3 patch does not apply on top of the 4.7.2 kernel source, but rather on top of the base 4.7 kernel source. So, in order to apply the 4.7.3 patch to your existing 4.7.2 kernel source you have to first back out the 4.7.2 patch (so you are left with a base 4.7 kernel source) and then apply the new 4.7.3 patch.

serruchozgzOptions: BD
Mar 11, 2022

B & D are correct. https://www.kernel.org/doc/html/v4.18/process/applying-patches.html: "To apply a patch moving from 4.6 to 4.7, you’d do the following (note that such patches do NOT apply on top of 4.x.y kernels but on top of the base 4.x kernel – if you need to move from 4.x.y to 4.x+1 you need to first revert the 4.x.y patch)."

milan92stankovicOptions: BD
Jan 19, 2021

B, D - 100%

benny1102Options: BD
Nov 19, 2021

B, D correct.

phucpeta
Nov 29, 2021

50/50 B&C

EMordentiOptions: BD
Jan 25, 2022

In my opinion, B and D https://www.kernel.org/doc/html/v4.18/process/applying-patches.html

roach7Options: CD
Jan 17, 2021

Excactly. You can not patch ANY kernel Version with the patch file 4.6.4. Only a Kernel with Version 4.6.3. So the Answer E is not correct

schinderhannesOptions: CD
Sep 11, 2021

C an D - 100%

phucpetaOptions: BD
Nov 29, 2021

50/50 between B and C. D is correct "Patch-4.6.4.xz" is an XZ compressed file, you need to decompress it first, or use the "xzcat" command to read the content. The naming method of the patch file is: "patch-4.6.4" is a diff made for "4.6.0". "Patch-4.6.3-4" is a diff created for "4.6.3". "Patch-4.6" is a diff created for "4.5.0". Option A, if you want to compile the Linux kernel, you need to do it in the "/usr/src/linux" directory, but the patch file cannot be used directly to overwrite the source code. It needs to be used with the "patch" command. Option B is correct. After decompression, apply it through the "patch" command. You can also read the file with the "xzcat" command if you don't decompress it in advance. Option C, if the previous Linux kernel source code is not version 4.6.0, you must first apply other patch files to fix it to version 4.6.0. Option D, correct. Option E, if the previous Linux kernel source code is not version 4.6.0, you must first apply other patch files to fix it to version 4.6.0.

bluepenguinOptions: BD
Mar 27, 2022

B,D - first uncompress the file, the run patch to the previous version. The patch command itself has no uncompress feature

MaikyCR28Options: BD
Mar 29, 2023

B,D 100%

chiaseedOptions: BD
Sep 9, 2023

Voting for B and D