FS#45296 - [lxc] lxc-checkconfig is not aware of kernel 4

Attached to Project: Community Packages
Opened by Daniel Petre (dape) - Thursday, 11 June 2015, 11:25 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 27 July 2015, 09:38 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

lxc-checkconfig is not aware that Arch Linux uses kernel major version 4 now..

Additional info:
* package version(s)

lxc 1:1.1.2-2

* config and/or log files etc.

/usr/bin/lxc-checkconfig

Steps to reproduce:

[root@arch ~]# /usr/bin/lxc-checkconfig.orig | grep memory
Cgroup memory controller: missing

After this little modification:

--- /usr/bin/lxc-checkconfig 2015-06-11 14:01:35.478350577 +0300
+++ /usr/bin/lxc-checkconfig.orig 2015-06-11 14:01:14.138350786 +0300
@@ -100,7 +100,7 @@
echo -n "Cgroup sched: " && is_enabled CONFIG_CGROUP_SCHED
echo -n "Cgroup cpu account: " && is_enabled CONFIG_CGROUP_CPUACCT
echo -n "Cgroup memory controller: "
-if [ $KVER_MAJOR -ge 3 -a $KVER_MINOR -ge 6 -o $KVER_MAJOR -eq 4 ]; then
+if [ $KVER_MAJOR -ge 3 -a $KVER_MINOR -ge 6 ]; then
is_enabled CONFIG_MEMCG
else
is_enabled CONFIG_CGROUP_MEM_RES_CTLR

it works:

[root@virtual03 ~]# /usr/bin/lxc-checkconfig | grep memory
Cgroup memory controller: enabled


This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 27 July 2015, 09:38 GMT
Reason for closing:  Won't implement
Additional comments about closing:  let's wait for upstream release. This bug is not so critical to backport the patch as I understand
Comment by Doug Newgard (Scimmia) - Thursday, 11 June 2015, 15:20 GMT
Is this fixed upstream?
Comment by Daniel Petre (dape) - Thursday, 11 June 2015, 20:56 GMT

Loading...