Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d13ee644
Unverified
Commit
d13ee644
authored
Mar 29, 2023
by
Derek Nola
Committed by
GitHub
Mar 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhance `k3s check-config` (#7091)
* Move CONFIG_CGROUP_PIDS to Required Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
parent
01ea3ff2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
check-config.sh
contrib/util/check-config.sh
+10
-6
No files found.
contrib/util/check-config.sh
View file @
d13ee644
...
@@ -177,8 +177,15 @@ echo
...
@@ -177,8 +177,15 @@ echo
if
[
-s
.links
]
;
then
if
[
-s
.links
]
;
then
while
read
file
link
;
do
while
read
file
link
;
do
if
[
"
$(
readlink
$file
)
"
!=
"
$link
"
]
;
then
if
[
"
$(
readlink
$file
)
"
!=
"
$link
"
]
;
then
wrap_bad
'- links'
"
$file
should link to
$link
"
# If no iptables is installed on the host system, the symlink will be different
linkFail
=
1
if
[
"
$(
readlink
$file
)
"
=
"xtables-legacy-multi"
]
;
then
wrap_warn
"-
$file
"
"symlink to xtables-legacy-multi"
elif
[
"
$(
readlink
$file
)
"
=
"xtables-nft-multi"
]
;
then
wrap_warn
"-
$file
"
"symlink to xtables-nft-multi"
else
wrap_bad
"-
$file
"
"symlink to
$link
"
linkFail
=
1
fi
fi
fi
done
<.links
done
<.links
if
[
$linkFail
-eq
0
]
;
then
if
[
$linkFail
-eq
0
]
;
then
...
@@ -374,7 +381,7 @@ fi
...
@@ -374,7 +381,7 @@ fi
flags
=
"
flags
=
"
NAMESPACES NET_NS PID_NS IPC_NS UTS_NS
NAMESPACES NET_NS PID_NS IPC_NS UTS_NS
CGROUPS CGROUP_CPUACCT CGROUP_DEVICE CGROUP_FREEZER CGROUP_SCHED CPUSETS MEMCG
CGROUPS CGROUP_
PIDS CGROUP_
CPUACCT CGROUP_DEVICE CGROUP_FREEZER CGROUP_SCHED CPUSETS MEMCG
KEYS
KEYS
VETH BRIDGE BRIDGE_NETFILTER
VETH BRIDGE BRIDGE_NETFILTER
IP_NF_FILTER IP_NF_TARGET_MASQUERADE
IP_NF_FILTER IP_NF_TARGET_MASQUERADE
...
@@ -398,9 +405,6 @@ echo 'Optional Features:'
...
@@ -398,9 +405,6 @@ echo 'Optional Features:'
{
{
check_flags SECCOMP
check_flags SECCOMP
}
}
{
check_flags CGROUP_PIDS
}
# {
# {
# check_flags MEMCG_SWAP MEMCG_SWAP_ENABLED
# check_flags MEMCG_SWAP MEMCG_SWAP_ENABLED
# if [ -e /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes ]; then
# if [ -e /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes ]; then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment