mirror of
https://github.com/dynup/kpatch
synced 2024-12-22 13:12:06 +00:00
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:
parent
9f1a0b85a8
commit
54c3d6d8fe
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user