mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't check RESOURCE_COUNTERS in new kernel
Closes: #13543 Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
63823cd6c1
commit
8bfc8102be
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue