Fix livepatch-enabled kernel detection in kpatch script

We can no longer use klp_register_patch symbol to determine if the
kernel is livepatch-enabled. Use klp_enable_patch instead.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2019-05-07 14:12:38 +02:00
parent 9f1a0b85a8
commit 54c3d6d8fe

View File

@ -126,7 +126,7 @@ find_core_module() {
}
core_loaded () {
grep -q -e "T klp_register_patch" -e "T kpatch_register" /proc/kallsyms
grep -q -e "T klp_enable_patch" -e "T kpatch_register" /proc/kallsyms
}
get_module_name () {