doc: kpatch-build uses "replace" flag by default

Add documentation about kpatch-build enables livepatch "replace" flag by
default, and provides -R|--non-replace option to disable the flag.

Signed-off-by: Song Liu <song@kernel.org>
This commit is contained in:
Song Liu 2021-05-19 15:18:27 -07:00
parent 17dcebf077
commit 69e69d59e8
1 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,13 @@ recommended that when patching a system which has already been patched, the
second patch should be a cumulative upgrade which is a superset of the first
patch.
Since upstream kernel 5.1, livepatch supports a "replace" flag to help the
management of cumulative patches. With the flag set, the kernel will load
the cumulative patch and unload all existing patches in one transition.
kpatch-build enables the replace flag by default. If replace behavior is
not desired, the user can disable it with -R|--non-replace.
Data structure changes
----------------------