mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
scripts/check-config: don't check MEMCG_SWAP on newer kernels
Kernel commit e55b9f96860f (which made its way into Linux v6.1-rc1) removes CONFIG_MEMCG_SWAP entirely, so there's no sense to check for in on newer kernels. Make the check conditional. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -255,8 +255,9 @@ echo 'Optional Features:'
|
||||
check_flags SECCOMP_FILTER
|
||||
check_flags CGROUP_PIDS
|
||||
|
||||
check_flags MEMCG_SWAP
|
||||
|
||||
if kernel_lt 6 1; then
|
||||
check_flags MEMCG_SWAP
|
||||
fi
|
||||
if kernel_lt 5 8; then
|
||||
check_flags MEMCG_SWAP_ENABLED
|
||||
if is_set MEMCG_SWAP && ! is_set MEMCG_SWAP_ENABLED; then
|
||||
|
||||
Reference in New Issue
Block a user