From 339204966584435c715e7be45380ca6e9d9923d6 Mon Sep 17 00:00:00 2001 From: Song Liu Date: Thu, 28 Apr 2022 11:43:43 -0700 Subject: [PATCH] kpatch-build: remove duplicated use_klp_arch The two versions are not the same (4.18.0-240.el8 vs. 4.18.0-284.el8). But I am not quite sure which one is accurate. Remove the first one as the second one is being used before this change. Signed-off-by: Song Liu --- kpatch-build/kpatch-build | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 634095d..b1f03e3 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -205,21 +205,6 @@ rhel_kernel_version_gte() { [ "${ARCHVERSION}" = "$(echo -e "${ARCHVERSION}\\n$1" | sort -rV | head -n1)" ] } -# klp.arch relocations were supported prior to v5.8 -# and prior to 4.18.0-240.el8 -use_klp_arch() -{ - if kernel_is_rhel; then - ! rhel_kernel_version_gte 4.18.0-240.el8 - else - ! kernel_version_gte 5.8.0 - fi -} - -rhel_kernel_version_gte() { - [ "${ARCHVERSION}" = "$(echo -e "${ARCHVERSION}\\n$1" | sort -rV | head -n1)" ] -} - # klp.arch relocations were supported prior to v5.8 # and prior to 4.18.0-284.el8 use_klp_arch()