From: John Madieu <john.madieu@gmail.com>
To: meta-virtualization@lists.yoctoproject.org
Cc: bruce.ashfield@gmail.com, John Madieu <john.madieu@gmail.com>
Subject: [meta-virtualization][PATCH 1/2] docker-moby: drop the check-config patch for MEMCG_SWAP
Date: Sun, 29 Nov 2026 22:48:18 +0100 [thread overview]
Message-ID: <20261129214819.2587429-2-john.madieu@gmail.com> (raw)
In-Reply-To: <20261129214819.2587429-1-john.madieu@gmail.com>
check-config.sh of docker-v29 only checks MEMCG_SWAP on kernels older
than 5.8, so the patch that skipped that check on 6.1+ kernels has
nothing left to do.
When the patch was refreshed for docker-v29.0.0-rc.1, its hunk moved
onto the CGROUP_PIDS check, where it opens an if in one { } block and
closes it with fi in the next. The installed check-config.sh stops
with a syntax error after the optional features, before the network
and storage driver checks.
Drop the patch.
Signed-off-by: John Madieu <john.madieu@gmail.com>
---
recipes-containers/docker/docker-moby_git.bb | 1 -
...g-make-CONFIG_MEMCG_SWAP-conditional.patch | 55 -------------------
2 files changed, 56 deletions(-)
delete mode 100644 recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch
diff --git a/recipes-containers/docker/docker-moby_git.bb b/recipes-containers/docker/docker-moby_git.bb
index 271f006e..ed944a69 100644
--- a/recipes-containers/docker/docker-moby_git.bb
+++ b/recipes-containers/docker/docker-moby_git.bb
@@ -53,7 +53,6 @@ SRC_URI = "\
file://docker.init \
file://0001-cli-use-external-GO111MODULE-and-cross-compiler.patch \
file://0001-dynbinary-use-go-cross-compiler.patch;patchdir=src/import \
- file://0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch;patchdir=src/import \
"
DOCKER_COMMIT = "${SRCREV_moby}"
diff --git a/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch b/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch
deleted file mode 100644
index b7fe5775..00000000
--- a/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From 28c115da3c6c2e6edda08c30a779f1ffaab2fbc7 Mon Sep 17 00:00:00 2001
-From: Bruce Ashfield <bruce.ashfield@gmail.com>
-Date: Fri, 18 Oct 2024 18:27:16 +0000
-Subject: [PATCH] check-config: make CONFIG_MEMCG_SWAP conditional
-
-Kernel's equal to or greater than 6.1 no longer have this
-option. See this kernel commit:
-
- commit e55b9f96860f6c6026cff97966a740576285e07b
- Author: Johannes Weiner <hannes@cmpxchg.org>
- Date: Mon Sep 26 09:57:04 2022 -0400
-
- mm: memcontrol: drop dead CONFIG_MEMCG_SWAP config symbol
-
- Since 2d1c498072de ("mm: memcontrol: make swap tracking an integral part
- of memory control"), CONFIG_MEMCG_SWAP hasn't been a user-visible config
- option anymore, it just means CONFIG_MEMCG && CONFIG_SWAP.
-
- Update the sites accordingly and drop the symbol.
-
- [ While touching the docs, remove two references to CONFIG_MEMCG_KMEM,
- which hasn't been a user-visible symbol for over half a decade. ]
-
- Link: https://lkml.kernel.org/r/20220926135704.400818-5-hannes@cmpxchg.org
- Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
- Acked-by: Shakeel Butt <shakeelb@google.com>
- Cc: Hugh Dickins <hughd@google.com>
- Cc: Michal Hocko <mhocko@suse.com>
- Cc: Roman Gushchin <roman.gushchin@linux.dev>
- Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
----
- contrib/check-config.sh | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-Index: import/contrib/check-config.sh
-===================================================================
---- import.orig/contrib/check-config.sh
-+++ import/contrib/check-config.sh
-@@ -253,9 +253,11 @@ echo 'Optional Features:'
- check_flags SECCOMP_FILTER
- }
- {
-- check_flags CGROUP_PIDS
-+ if [ "$kernelMajor" -lt 6 ] || [ "$kernelMajor" -eq 6 -a "$kernelMinor" -le 1 ]; then
-+ check_flags CGROUP_PIDS
- }
- {
-+ fi
- # Kernel v5.8+ removes MEMCG_SWAP_ENABLED and deprecates MEMCG_SWAP.
- if [ "$kernelMajor" -lt 5 ] || [ "$kernelMajor" -eq 5 -a "$kernelMinor" -lt 8 ]; then
- CODE=${EXITCODE}
--
2.25.1
next prev parent reply other threads:[~2026-11-29 21:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 21:48 [meta-virtualization][PATCH 0/2] docker-moby, container-registry: fix check-config and registry defaults John Madieu
2026-11-29 21:48 ` John Madieu [this message]
2026-11-30 5:04 ` [meta-virtualization][PATCH 1/2] docker-moby: drop the check-config patch for MEMCG_SWAP Bruce Ashfield
2026-11-29 21:48 ` [meta-virtualization][PATCH 2/2] container-registry: default to insecure only without a secure registry John Madieu
2026-11-30 5:04 ` Bruce Ashfield
2026-11-30 11:04 ` john madieu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261129214819.2587429-2-john.madieu@gmail.com \
--to=john.madieu@gmail.com \
--cc=bruce.ashfield@gmail.com \
--cc=meta-virtualization@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.