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
c83ec56c
Commit
c83ec56c
authored
Nov 13, 2019
by
Erik Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Non-fatal warning for check-config modules
parent
ea69b454
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
check-config.sh
contrib/util/check-config.sh
+4
-2
No files found.
contrib/util/check-config.sh
View file @
c83ec56c
...
@@ -19,6 +19,7 @@ possibleConfigs="
...
@@ -19,6 +19,7 @@ possibleConfigs="
"
"
binDir
=
$(
dirname
"
$0
"
)
binDir
=
$(
dirname
"
$0
"
)
configFormat
=
gz
configFormat
=
gz
isError
=
0
if
[
$#
-gt
0
]
;
then
if
[
$#
-gt
0
]
;
then
CONFIG
=
"
$1
"
CONFIG
=
"
$1
"
...
@@ -108,7 +109,7 @@ check_flag() {
...
@@ -108,7 +109,7 @@ check_flag() {
elif
is_set_as_module
"
$1
"
;
then
elif
is_set_as_module
"
$1
"
;
then
wrap_good
"CONFIG_
$1
"
'enabled (as module)'
wrap_good
"CONFIG_
$1
"
'enabled (as module)'
else
else
if
[
"
$IS_ERROR
"
=
1
]
;
then
if
[
$isError
-eq
1
]
;
then
wrap_bad
"CONFIG_
$1
"
'missing'
wrap_bad
"CONFIG_
$1
"
'missing'
else
else
wrap_warn
"CONFIG_
$1
"
'missing'
wrap_warn
"CONFIG_
$1
"
'missing'
...
@@ -341,7 +342,8 @@ flags="
...
@@ -341,7 +342,8 @@ flags="
IP_NF_NAT NF_NAT NF_NAT_NEEDED
IP_NF_NAT NF_NAT NF_NAT_NEEDED
POSIX_MQUEUE
POSIX_MQUEUE
"
"
IS_ERROR
=
1 check_flags
$flags
isError
=
1 check_flags
$flags
&&
isError
=
0
if
[
"
$kernelMajor
"
-lt
4
]
||
(
[
"
$kernelMajor
"
-eq
4
]
&&
[
"
$kernelMinor
"
-lt
8
]
)
;
then
if
[
"
$kernelMajor
"
-lt
4
]
||
(
[
"
$kernelMajor
"
-eq
4
]
&&
[
"
$kernelMinor
"
-lt
8
]
)
;
then
check_flags DEVPTS_MULTIPLE_INSTANCES
check_flags DEVPTS_MULTIPLE_INSTANCES
fi
fi
...
...
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