The problem appears to be around line 102 of the lxc-checkconfig script.
echo -n "Cgroup memory controller: "
is followed by a slightly flawed check for kernel version...
if [ $KVER_MAJOR -ge 3 -a $KVER_MINOR -ge 6 ]; then
is_enabled CONFIG_MEMCG
else
is_enabled CONFIG_CGROUP_MEM_RES_CTLR
fi
The test - $KVER_MAJOR -ge 3 - passes, as this will be '4'.
The test - $KVER_MINOR -ge 6 - will fail, as the minor is '0'.
Likely a more robust test is to test for CONFIG_CGROUP_MEM_RES_CTLR
in kernel-3.6 + below.
The 4.0.7 kernel config file shows...
config-4.0.7-040007-generic:CONFIG_MEMCG=y
config-4.0.7-040007-generic:CONFIG_MEMCG_SWAP=y
config-4.0.7-040007-generic:# CONFIG_MEMCG_SWAP_ENABLED is not set
config-4.0.7-040007-generic:CONFIG_MEMCG_KMEM=y
Which is correct, as CONFIG_CGROUP_MEM_RES_CTLR seems to have been
deprecated.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1471358
Title:
lxc-checkconfig shows Mainline PPA Wily-4.0.7 kernel missing memory
controller
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1471358/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs