]> git.ipfire.org Git - thirdparty/lxc.git/commit
Make lxc-checkconfig work with kernel versions > 3 498/head
authorChristian Brauner <christianvanbrauner@gmail.com>
Sat, 25 Apr 2015 08:05:07 +0000 (10:05 +0200)
committerChristian Brauner <christianvanbrauner@gmail.com>
Sat, 25 Apr 2015 08:05:07 +0000 (10:05 +0200)
commit56983b40c7ec9cf7666965eeb3d9e526e3bf982a
tree18231c8da7b969ab9760e97ee2e28627c53af824
parent83828d6770ff2a186a2f17cba8e8a15a4dfb8ca8
Make lxc-checkconfig work with kernel versions > 3

(1) Add test for kernel version greater 3.
(2) Use && and || instead of -a and -o as suggested in
    http://www.unix.com/man-page/posix/1p/test/.

lxc-checkconfig will currently report "missing" on "Cgroup memory controller"
for kernel versions greater 3. This happens because the script, before checking
for the corresponding memory variable in the kernel config, currently will test
whether we have a major kernel version greater- or equal to 3 and a minor kernel
version greater- or equal to 6. This adds an additional test whether we have a
major kernel version greater than 3.

Signed-off-by: Christian Brauner <christianvanbrauner@gmail.com>
src/lxc/lxc-checkconfig.in