mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Non-fatal warning for check-config modules
This commit is contained in:
parent
ea69b45477
commit
c83ec56cbe
@ -19,6 +19,7 @@ possibleConfigs="
|
||||
"
|
||||
binDir=$(dirname "$0")
|
||||
configFormat=gz
|
||||
isError=0
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
CONFIG="$1"
|
||||
@ -108,7 +109,7 @@ check_flag() {
|
||||
elif is_set_as_module "$1"; then
|
||||
wrap_good "CONFIG_$1" 'enabled (as module)'
|
||||
else
|
||||
if [ "$IS_ERROR" = 1 ]; then
|
||||
if [ $isError -eq 1 ]; then
|
||||
wrap_bad "CONFIG_$1" 'missing'
|
||||
else
|
||||
wrap_warn "CONFIG_$1" 'missing'
|
||||
@ -341,7 +342,8 @@ flags="
|
||||
IP_NF_NAT NF_NAT NF_NAT_NEEDED
|
||||
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
|
||||
check_flags DEVPTS_MULTIPLE_INSTANCES
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user