#! /bin/sh # ### BEGIN INIT INFO # Required-Start: $local_fs # Required-Stop: $local_fs # Provides: qemu-hugefsdir # Default-Start: 2 3 4 5 # Default-Stop: 0 6 # Short-Description: Make sure qemu gets a temp hugetblfs dir # Description: Make sure qemu gets a temp hugetblfs dir ### END INIT INFO mkdir -p /run/hugepages/kvm/libvirt/qemu || true libvirt_group="libvirtd" if getent group libvirt >/dev/null; then libvirt_group="libvirt" fi chown libvirt-qemu:$libvirt_group /run/hugepages/kvm/libvirt/qemu