[lxc-devel] [lxc/lxc] 56983b: Make lxc-checkconfig work with kernel versions > 3

GitHub noreply at github.com
Mon May 11 18:03:10 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 56983b40c7ec9cf7666965eeb3d9e526e3bf982a
      https://github.com/lxc/lxc/commit/56983b40c7ec9cf7666965eeb3d9e526e3bf982a
  Author: Christian Brauner <christianvanbrauner at gmail.com>
  Date:   2015-04-25 (Sat, 25 Apr 2015)

  Changed paths:
    M src/lxc/lxc-checkconfig.in

  Log Message:
  -----------
  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 at gmail.com>


  Commit: ae829be398c0422d01101b6cb59b0d7d69580ba7
      https://github.com/lxc/lxc/commit/ae829be398c0422d01101b6cb59b0d7d69580ba7
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2015-05-11 (Mon, 11 May 2015)

  Changed paths:
    M src/lxc/lxc-checkconfig.in

  Log Message:
  -----------
  Merge pull request #498 from brauner/master

Make lxc-checkconfig work with kernel versions > 3


Compare: https://github.com/lxc/lxc/compare/e7831129a251...ae829be398c0


More information about the lxc-devel mailing list