[2/2] libvirtd: Enable required cgroups
Commit Message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
lfs/libvirt | 2 +-
src/initscripts/packages/libvirtd | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
@@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
SUP_ARCH = i586 x86_64
PROG = libvirt
-PAK_VER = 25
+PAK_VER = 26
DEPS = ebtables libpciaccess libtirpc libyajl ncat qemu
@@ -20,9 +20,14 @@ case $1 in
boot_mesg "Load required kernel modules for Libvirt"
modprobe tun vhost_net
evaluate_retval
+
+ # Enable required cgroup controllers
+ if [ -d "/sys/fs/cgroup" ]; then
+ echo "+cpu +io" > /sys/fs/cgroup/cgroup.subtree_control
+ fi
+
boot_mesg "Starting Libvirt Daemon..."
loadproc /usr/sbin/libvirtd -d
-
;;
stop)