contrib/check-config: fix kernel version range check

Signed-off-by: 纯真 <38834411+chunzhennn@users.noreply.github.com>
This commit is contained in:
纯真 authored and GitHub committed 2025-07-29 10:45:18 +08:00
1 parent df8d45c7c9
commit f866621303
1 file changed
+1 -1
+1 -1
View File
@@ -247,7 +247,7 @@ echo 'Optional Features:'
}
{
# Kernel v5.8+ removes MEMCG_SWAP_ENABLED and deprecates MEMCG_SWAP.
if [ "$kernelMajor" -lt 5 ] || [ "$kernelMajor" -eq 5 -a "$kernelMinor" -le 8 ]; then
if [ "$kernelMajor" -lt 5 ] || [ "$kernelMajor" -eq 5 -a "$kernelMinor" -lt 8 ]; then
CODE=${EXITCODE}
check_flags MEMCG_SWAP MEMCG_SWAP_ENABLED
# FIXME this check is cgroupv1-specific