]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virt-host-validate: require freezer for LXC
authorPavel Hrdina <phrdina@redhat.com>
Sat, 29 Sep 2018 19:47:50 +0000 (21:47 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 5 Oct 2018 13:53:29 +0000 (15:53 +0200)
Cgroup freezer support for LXC was added in libvirt-0.7.2.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
tools/virt-host-validate-lxc.c

index 3c55b1b26dba38c7f875f6a2f1e92f61cf0df2e1..8613f37cc76256dc1e26d721a891d2b05d2c4c74 100644 (file)
@@ -70,6 +70,7 @@ int virHostValidateLXC(void)
                                          (1 << VIR_CGROUP_CONTROLLER_CPUACCT) |
                                          (1 << VIR_CGROUP_CONTROLLER_CPUSET) |
                                          (1 << VIR_CGROUP_CONTROLLER_DEVICES) |
+                                         (1 << VIR_CGROUP_CONTROLLER_FREEZER) |
                                          (1 << VIR_CGROUP_CONTROLLER_BLKIO),
                                          VIR_HOST_VALIDATE_FAIL) < 0) {
         ret = -1;