Zhao Lei
|
6683e16c03
|
[check-config] Search possible files in dir
If we give a dir as argument for check-config, it will treat the
dir as a config file, and grep config contents from the dir,
and get wrong result, as:
| # script/check-config.sh /linux
| info: reading kernel config from /linux ...
|
| Generally Necessary:
| - cgroup hierarchy: properly mounted [/sys/fs/cgroup]
| - CONFIG_NAMESPACES: missing
| - CONFIG_NET_NS: missing
| - CONFIG_PID_NS: missing
| - CONFIG_IPC_NS: missing
| - CONFIG_UTS_NS: missing
| - CONFIG_CGROUPS: missing
| - CONFIG_CGROUP_CPUACCT: missing
| - CONFIG_CGROUP_DEVICE: missing
| - CONFIG_CGROUP_FREEZER: missing
| - CONFIG_CGROUP_SCHED: missing
| ...
We can search possible config files in the dir,
after patch:
| # script/check-config.sh /linux
| warning: /linux seems not a kernel config, searching other paths for kernel config ...
| info: reading kernel config from /linux/.config ...
|
| Generally Necessary:
| - cgroup hierarchy: properly mounted [/sys/fs/cgroup]
| - CONFIG_NAMESPACES: enabled
| - CONFIG_NET_NS: enabled
| - CONFIG_PID_NS: enabled
| - CONFIG_IPC_NS: enabled
| - CONFIG_UTS_NS: enabled
| - CONFIG_CGROUPS: enabled
| - CONFIG_CGROUP_CPUACCT: enabled
| - CONFIG_CGROUP_DEVICE: enabled
| - CONFIG_CGROUP_FREEZER: enabled
| - CONFIG_CGROUP_SCHED: enabled
| ...
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
|
2016-09-06 15:54:45 +08:00 |
|