contrib/check-config.sh: fixes for cgroup v2 and kernel v5.x#41869
Merged
AkihiroSuda merged 6 commits intomoby:masterfrom Jan 13, 2021
Merged
contrib/check-config.sh: fixes for cgroup v2 and kernel v5.x#41869AkihiroSuda merged 6 commits intomoby:masterfrom
AkihiroSuda merged 6 commits intomoby:masterfrom
Conversation
37ac55a to
03af8af
Compare
thaJeztah
requested changes
Jan 12, 2021
Member
thaJeztah
left a comment
There was a problem hiding this comment.
looks good after linting failure is fixed 👍
Before: > Generally Necessary: > - cgroup hierarchy: nonexistent?? > (see https://github.com/tianon/cgroupfs-mount) After: > Generally Necessary: > - cgroup hierarchy: cgroupv2 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
CONFIG_NF_NAT_IPV4 was removed in kernel commit 3bf195ae6037e310, which made its way into v5.1-rc1. The functionality is now under NF_NAT which we already check for. Make the check for NF_NAT_IPV4 conditional. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
CONFIG_NF_NAT_NEEDED was removed in kernel commit 4806e975729f99c7, which made its way into v5.2-rc1. The functionality is now under NF_NAT which we already check for. Make the check for NF_NAT_NEEDED conditional. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Kernel commit 2d1c498072de69e (which made its way into kernel v5.8-rc1) removed CONFIG_MEMCG_SWAP_ENABLED Kconfig option, making swap accounting always enabled (unless swapaccount=0 boot option is provided). Make the check conditional. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
These config options are removed by kernel commit f382fb0bcef4, which made its way into kernel v5.0-rc1. Make the check conditional. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This parameter was removed by kernel commit 4c145dce260137, which made its way to kernel v5.3-rc1. Since that commit, the functionality is built-in (i.e. it is available as long as CONFIG_XFRM is on). Make the check conditional. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
03af8af to
06d9020
Compare
AkihiroSuda
approved these changes
Jan 13, 2021
Member
AkihiroSuda
left a comment
There was a problem hiding this comment.
I think we need more validations for cgroup2, but it can be worked out later, so LGTM
Member
|
@AkihiroSuda do you know what's missing? If so, could you open a tracking issue that lists the missing ones? |
Member
|
opened #41874 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #41797
fixes #41798
Before:
After:
See individual commits for details.