mirror of https://github.com/dynup/kpatch
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 <song@kernel.org>
This commit is contained in:
parent
b0444d2599
commit
3392049665
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue