~hopem/charms/trusty/nova-compute/lp1518975

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /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
chown libvirt-qemu:libvirtd /run/hugepages/kvm/libvirt/qemu