Commit d9e2cc0e by Daniel Lezcano Committed by Daniel Lezcano

lxc-checkconfig takes into account cgroup.clone_children

Take into account we may have the clone_children flag on the cgroup, so we ignore cgroup namespace in this case. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 0b9c21ab
...@@ -62,8 +62,17 @@ echo -n "Network namespace: " && is_enabled CONFIG_NET_NS ...@@ -62,8 +62,17 @@ echo -n "Network namespace: " && is_enabled CONFIG_NET_NS
echo -n "Multiple /dev/pts instances: " && is_enabled DEVPTS_MULTIPLE_INSTANCES echo -n "Multiple /dev/pts instances: " && is_enabled DEVPTS_MULTIPLE_INSTANCES
echo echo
echo "--- Control groups ---" echo "--- Control groups ---"
CGROUP_MNT_PATH=$(grep -m1 "^cgroup" /proc/self/mounts | awk '{ print $2 }')
echo -n "Cgroup: " && is_enabled CONFIG_CGROUPS yes echo -n "Cgroup: " && is_enabled CONFIG_CGROUPS yes
echo -n "Cgroup namespace: " && is_enabled CONFIG_CGROUP_NS
if [ -f $CGROUP_MNT_PATH/cgroup.clone_children ]; then
echo -n "Cgroup clone_children flag: " &&
$SETCOLOR_SUCCESS && echo -e "enabled" && $SETCOLOR_NORMAL
else
echo -n "Cgroup namespace: " && is_enabled CONFIG_CGROUP_NS yes
fi
echo -n "Cgroup device: " && is_enabled CONFIG_CGROUP_DEVICE echo -n "Cgroup device: " && is_enabled CONFIG_CGROUP_DEVICE
echo -n "Cgroup sched: " && is_enabled CONFIG_CGROUP_SCHED echo -n "Cgroup sched: " && is_enabled CONFIG_CGROUP_SCHED
echo -n "Cgroup cpu account: " && is_enabled CONFIG_CGROUP_CPUACCT echo -n "Cgroup cpu account: " && is_enabled CONFIG_CGROUP_CPUACCT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment