зеркало из https://github.com/microsoft/docker.git
Don't check RESOURCE_COUNTERS in new kernel
Closes: #13543 Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Родитель
63823cd6c1
Коммит
8bfc8102be
|
@ -23,6 +23,11 @@ if ! command -v zgrep &> /dev/null; then
|
|||
}
|
||||
fi
|
||||
|
||||
kernelVersion="$(uname -r)"
|
||||
kernelMajor="${kernelVersion%%.*}"
|
||||
kernelMinor="${kernelVersion#$kernelMajor.}"
|
||||
kernelMinor="${kernelMinor%%.*}"
|
||||
|
||||
is_set() {
|
||||
zgrep "CONFIG_$1=[y|m]" "$CONFIG" > /dev/null
|
||||
}
|
||||
|
@ -182,8 +187,12 @@ echo 'Optional Features:'
|
|||
echo " $(wrap_color '(note that cgroup swap accounting is not enabled in your kernel config, you can enable it by setting boot option "swapaccount=1")' bold black)"
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$kernelMajor" -lt 3 ] || [ "$kernelMajor" -eq 3 -a "$kernelMinor" -le 18 ]; then
|
||||
check_flags RESOURCE_COUNTERS
|
||||
fi
|
||||
|
||||
flags=(
|
||||
RESOURCE_COUNTERS
|
||||
BLK_CGROUP
|
||||
IOSCHED_CFQ
|
||||
CGROUP_PERF
|
||||
|
|
Загрузка…
Ссылка в новой задаче